aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2019-06-04 07:38:13 +0100
committerAlan Du <[email protected]>2019-06-04 23:05:07 +0100
commited3d93b875f25da6f81b8a107a8c200311240627 (patch)
tree77da821f9b00fc68e22f93aa5dba9989c8fcf0a7 /crates/ra_assists/src
parent682bf04bf4a84e9c309b4ad2079ff08a3b09770b (diff)
Fix clippy::single_char_pattern
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r--crates/ra_assists/src/introduce_variable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/introduce_variable.rs b/crates/ra_assists/src/introduce_variable.rs
index fb7333c8c..28467d341 100644
--- a/crates/ra_assists/src/introduce_variable.rs
+++ b/crates/ra_assists/src/introduce_variable.rs
@@ -57,9 +57,9 @@ pub(crate) fn introduce_variable(mut ctx: AssistCtx<impl HirDatabase>) -> Option
57 if text.starts_with("\r\n") { 57 if text.starts_with("\r\n") {
58 buf.push_str("\r\n"); 58 buf.push_str("\r\n");
59 buf.push_str(text.trim_start_matches("\r\n")); 59 buf.push_str(text.trim_start_matches("\r\n"));
60 } else if text.starts_with("\n") { 60 } else if text.starts_with('\n') {
61 buf.push_str("\n"); 61 buf.push_str("\n");
62 buf.push_str(text.trim_start_matches("\n")); 62 buf.push_str(text.trim_start_matches('\n'));
63 } else { 63 } else {
64 buf.push_str(text); 64 buf.push_str(text);
65 } 65 }