diff options
author | Jeremy Kolb <[email protected]> | 2019-07-04 18:26:44 +0100 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2019-07-04 22:43:00 +0100 |
commit | 4ad9e986ad05e404df73701c098b71f73a847ca6 (patch) | |
tree | 2a2b2cc9dbee07d0aa92df883c807edbab264a85 /crates/ra_mbe/src/mbe_expander.rs | |
parent | c6a6e43372de9530ec7df0f38352466ed107e1a2 (diff) |
Some clippy fixes for 1.36
Diffstat (limited to 'crates/ra_mbe/src/mbe_expander.rs')
-rw-r--r-- | crates/ra_mbe/src/mbe_expander.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/mbe_expander.rs b/crates/ra_mbe/src/mbe_expander.rs index fbad8ebe2..c7c06c7fd 100644 --- a/crates/ra_mbe/src/mbe_expander.rs +++ b/crates/ra_mbe/src/mbe_expander.rs | |||
@@ -498,7 +498,7 @@ fn expand_tt( | |||
498 | tt::Leaf::from(tt::Ident { text: ident.text.clone(), id: TokenId::unspecified() }) | 498 | tt::Leaf::from(tt::Ident { text: ident.text.clone(), id: TokenId::unspecified() }) |
499 | .into() | 499 | .into() |
500 | } | 500 | } |
501 | crate::Leaf::Punct(punct) => tt::Leaf::from(punct.clone()).into(), | 501 | crate::Leaf::Punct(punct) => tt::Leaf::from(*punct).into(), |
502 | crate::Leaf::Var(v) => { | 502 | crate::Leaf::Var(v) => { |
503 | if v.text == "crate" { | 503 | if v.text == "crate" { |
504 | // FIXME: Properly handle $crate token | 504 | // FIXME: Properly handle $crate token |