mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 01:50:32 +00:00
Apply some clippy suggestions
This commit is contained in:
parent
4402f2b280
commit
47747cd412
19 changed files with 66 additions and 80 deletions
|
@ -248,7 +248,7 @@ pub mod token_stream {
|
|||
token_trees: subtree
|
||||
.token_trees
|
||||
.into_iter()
|
||||
.map(|t| token_tree_replace_token_ids_with_unspecified(t))
|
||||
.map(token_tree_replace_token_ids_with_unspecified)
|
||||
.collect(),
|
||||
}
|
||||
}
|
||||
|
@ -457,7 +457,7 @@ impl server::Group for Rustc {
|
|||
}
|
||||
|
||||
fn span(&mut self, group: &Self::Group) -> Self::Span {
|
||||
group.delimiter.map(|it| it.id).unwrap_or_else(|| tt::TokenId::unspecified())
|
||||
group.delimiter.map(|it| it.id).unwrap_or_else(tt::TokenId::unspecified)
|
||||
}
|
||||
|
||||
fn set_span(&mut self, _group: &mut Self::Group, _span: Self::Span) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue