aboutsummaryrefslogtreecommitdiff
path: root/crates/gen_lsp_server/src
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/gen_lsp_server/src
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/gen_lsp_server/src')
-rw-r--r--crates/gen_lsp_server/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/gen_lsp_server/src/lib.rs b/crates/gen_lsp_server/src/lib.rs
index 7ecef83cb..0984e3e25 100644
--- a/crates/gen_lsp_server/src/lib.rs
+++ b/crates/gen_lsp_server/src/lib.rs
@@ -130,7 +130,7 @@ fn initialize(
130 Ok(RawMessage::Notification(n)) => { 130 Ok(RawMessage::Notification(n)) => {
131 n.cast::<Initialized>().map_err(|_| "expected initialized notification")?; 131 n.cast::<Initialized>().map_err(|_| "expected initialized notification")?;
132 } 132 }
133 _ => Err(format!("expected initialized notification"))?, 133 _ => Err("expected initialized notification".to_string())?,
134 } 134 }
135 Ok(params) 135 Ok(params)
136} 136}