mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 10:17:15 +00:00
Fix new nightly lints
This commit is contained in:
parent
232432411e
commit
6c23f25e7f
24 changed files with 81 additions and 51 deletions
|
|
@ -134,7 +134,7 @@ pub enum TokenTreeRef<'a, Span> {
|
|||
Leaf(&'a Leaf<Span>, &'a TokenTree<Span>),
|
||||
}
|
||||
|
||||
impl<'a, Span: Copy> TokenTreeRef<'a, Span> {
|
||||
impl<Span: Copy> TokenTreeRef<'_, Span> {
|
||||
pub fn span(&self) -> Span {
|
||||
match self {
|
||||
TokenTreeRef::Subtree(subtree, _) => subtree.delimiter.open,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue