aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/expr_extensions.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-04 22:56:36 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-04 22:56:36 +0100
commitb1bf434dfcf81ac681a9e152628f9eecde68470a (patch)
tree51ea069481d3a5eefa9ec1f558a12c85690dabce /crates/ra_syntax/src/ast/expr_extensions.rs
parentc6a6e43372de9530ec7df0f38352466ed107e1a2 (diff)
parente7fb6c83cc33facf0d74e253bd193afc46b1dc5c (diff)
Merge #1482
1482: Some clippy fixes for 1.36 r=kjeremy a=kjeremy Some clippy fixes now that 1.36 is released. ~~Plus the requisite format run (I can rebase after #1481 is merged to make this cleaner) .~~ The change from `map(|it| *it)` to `copied()` changes the minimum rust stable to 1.36. Co-authored-by: Jeremy Kolb <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/ast/expr_extensions.rs')
-rw-r--r--crates/ra_syntax/src/ast/expr_extensions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/expr_extensions.rs b/crates/ra_syntax/src/ast/expr_extensions.rs
index 87dbb0ea5..4355e3587 100644
--- a/crates/ra_syntax/src/ast/expr_extensions.rs
+++ b/crates/ra_syntax/src/ast/expr_extensions.rs
@@ -260,7 +260,7 @@ impl ast::Literal {
260 .iter() 260 .iter()
261 .find(|&s| text.ends_with(s)) 261 .find(|&s| text.ends_with(s))
262 .map(|&suf| SmolStr::new(suf)); 262 .map(|&suf| SmolStr::new(suf));
263 LiteralKind::FloatNumber { suffix: suffix } 263 LiteralKind::FloatNumber { suffix }
264 } 264 }
265 STRING | RAW_STRING => LiteralKind::String, 265 STRING | RAW_STRING => LiteralKind::String,
266 T![true] | T![false] => LiteralKind::Bool, 266 T![true] | T![false] => LiteralKind::Bool,