diff options
author | kjeremy <[email protected]> | 2019-12-20 20:14:30 +0000 |
---|---|---|
committer | kjeremy <[email protected]> | 2019-12-20 20:14:30 +0000 |
commit | 0d5d63a80ea08f2af439bcc72fff9b24d144c70d (patch) | |
tree | 688102f3cfdec260f5164d60f0bb95e33ebe9674 /crates/ra_lsp_server/src/main_loop.rs | |
parent | 9467f81c588bf7a62ec882f293e0870c187b368b (diff) |
Clippy lints
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop.rs')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 965e7c53c..9e207415e 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs | |||
@@ -131,7 +131,7 @@ pub fn main_loop( | |||
131 | let feature_flags = { | 131 | let feature_flags = { |
132 | let mut ff = FeatureFlags::default(); | 132 | let mut ff = FeatureFlags::default(); |
133 | for (flag, value) in config.feature_flags { | 133 | for (flag, value) in config.feature_flags { |
134 | if let Err(_) = ff.set(flag.as_str(), value) { | 134 | if ff.set(flag.as_str(), value).is_err() { |
135 | log::error!("unknown feature flag: {:?}", flag); | 135 | log::error!("unknown feature flag: {:?}", flag); |
136 | show_message( | 136 | show_message( |
137 | req::MessageType::Error, | 137 | req::MessageType::Error, |