From 47747cd4120e260a144242aadd7732e11d133fe4 Mon Sep 17 00:00:00 2001 From: Clemens Wasser Date: Mon, 7 Jun 2021 13:59:01 +0200 Subject: Apply some clippy suggestions --- crates/proc_macro_srv/src/rustc_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/proc_macro_srv/src') 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 { 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) { -- cgit v1.2.3