diff options
author | Matthias Krüger <[email protected]> | 2021-03-17 00:27:56 +0000 |
---|---|---|
committer | Matthias Krüger <[email protected]> | 2021-03-17 00:27:56 +0000 |
commit | 966c23f5290275ce17564f6027a17ec20cd6078f (patch) | |
tree | 9e977a29eaf10d1733340563ef31fda064e37400 /crates/rust-analyzer/src/to_proto.rs | |
parent | 83e6940efb42675226adb8d2856c095b8dce36c5 (diff) |
avoid converting types into themselves via .into() (clippy::useless-conversion)
example: let x: String = String::from("hello world").into();
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 70eaae5e8..c63fe2915 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -287,7 +287,7 @@ pub(crate) fn signature_help( | |||
287 | let params = call_info | 287 | let params = call_info |
288 | .parameter_ranges() | 288 | .parameter_ranges() |
289 | .iter() | 289 | .iter() |
290 | .map(|it| [u32::from(it.start()).into(), u32::from(it.end()).into()]) | 290 | .map(|it| [u32::from(it.start()), u32::from(it.end())]) |
291 | .map(|label_offsets| lsp_types::ParameterInformation { | 291 | .map(|label_offsets| lsp_types::ParameterInformation { |
292 | label: lsp_types::ParameterLabel::LabelOffsets(label_offsets), | 292 | label: lsp_types::ParameterLabel::LabelOffsets(label_offsets), |
293 | documentation: None, | 293 | documentation: None, |