diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-12 12:51:53 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-12 12:51:53 +0100 |
commit | 4b3d99f98f393d1c05b1041d3178cae45ebcd3ff (patch) | |
tree | ded304d310badd7d1dc040efa2c8c17572019464 /crates/ra_mbe/src/mbe_expander | |
parent | f6c0b1ce59c9fa5bcbf482b1b9d16a3bae6abf1c (diff) | |
parent | fcd4b0176f1544b389c9b028c547a1dfc92f9a56 (diff) |
Merge #5699
5699: Fix clippy warnings r=matklad a=popzxc
Currently clippy spawns a bunch of warnings on the `rust-analyzer` project. Nothing critical, but easy to fix, so I guess it won't harm.
Co-authored-by: Igor Aleksanov <[email protected]>
Diffstat (limited to 'crates/ra_mbe/src/mbe_expander')
-rw-r--r-- | crates/ra_mbe/src/mbe_expander/matcher.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/mbe_expander/matcher.rs b/crates/ra_mbe/src/mbe_expander/matcher.rs index f9e515b81..933a3a3b5 100644 --- a/crates/ra_mbe/src/mbe_expander/matcher.rs +++ b/crates/ra_mbe/src/mbe_expander/matcher.rs | |||
@@ -276,7 +276,7 @@ impl<'a> TtIter<'a> { | |||
276 | Ok(tt::Subtree { | 276 | Ok(tt::Subtree { |
277 | delimiter: None, | 277 | delimiter: None, |
278 | token_trees: vec![ | 278 | token_trees: vec![ |
279 | tt::Leaf::Punct(punct.clone()).into(), | 279 | tt::Leaf::Punct(*punct).into(), |
280 | tt::Leaf::Ident(ident.clone()).into(), | 280 | tt::Leaf::Ident(ident.clone()).into(), |
281 | ], | 281 | ], |
282 | } | 282 | } |