aboutsummaryrefslogtreecommitdiff
path: root/crates/proc_macro_srv
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-21 16:11:21 +0100
committerGitHub <[email protected]>2021-06-21 16:11:21 +0100
commit56e61bdfea5454dec4408a4947e037bcd042c886 (patch)
tree0bc42cbfcf5b6b502ad9fc3079cb4bdc5e8f110f /crates/proc_macro_srv
parent25bf451c8426a68ecfdc3a1d1be1db9702dd41d8 (diff)
parent47747cd4120e260a144242aadd7732e11d133fe4 (diff)
Merge #9165
9165: Apply some clippy suggestions r=matklad a=clemenswasser Co-authored-by: Clemens Wasser <[email protected]>
Diffstat (limited to 'crates/proc_macro_srv')
-rw-r--r--crates/proc_macro_srv/src/rustc_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/proc_macro_srv/src/rustc_server.rs b/crates/proc_macro_srv/src/rustc_server.rs
index 65ca3eb6c..e252e89a5 100644
--- a/crates/proc_macro_srv/src/rustc_server.rs
+++ b/crates/proc_macro_srv/src/rustc_server.rs
@@ -248,7 +248,7 @@ pub mod token_stream {
248 token_trees: subtree 248 token_trees: subtree
249 .token_trees 249 .token_trees
250 .into_iter() 250 .into_iter()
251 .map(|t| token_tree_replace_token_ids_with_unspecified(t)) 251 .map(token_tree_replace_token_ids_with_unspecified)
252 .collect(), 252 .collect(),
253 } 253 }
254 } 254 }
@@ -457,7 +457,7 @@ impl server::Group for Rustc {
457 } 457 }
458 458
459 fn span(&mut self, group: &Self::Group) -> Self::Span { 459 fn span(&mut self, group: &Self::Group) -> Self::Span {
460 group.delimiter.map(|it| it.id).unwrap_or_else(|| tt::TokenId::unspecified()) 460 group.delimiter.map(|it| it.id).unwrap_or_else(tt::TokenId::unspecified)
461 } 461 }
462 462
463 fn set_span(&mut self, _group: &mut Self::Group, _span: Self::Span) { 463 fn set_span(&mut self, _group: &mut Self::Group, _span: Self::Span) {