mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Some clippy cleanups
This commit is contained in:
parent
c1e10a24fa
commit
6753051a45
15 changed files with 49 additions and 55 deletions
|
@ -169,10 +169,7 @@ impl ConvWith for TextEdit {
|
|||
type Output = Vec<lsp_types::TextEdit>;
|
||||
|
||||
fn conv_with(self, line_index: &LineIndex) -> Vec<lsp_types::TextEdit> {
|
||||
self.as_atoms()
|
||||
.into_iter()
|
||||
.map_conv_with(line_index)
|
||||
.collect()
|
||||
self.as_atoms().iter().map_conv_with(line_index).collect()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -394,7 +391,7 @@ pub fn to_location_link(
|
|||
origin_selection_range: Some(target.range.conv_with(line_index)),
|
||||
target_uri,
|
||||
target_range,
|
||||
target_selection_range: target_selection_range,
|
||||
target_selection_range,
|
||||
};
|
||||
Ok(res)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue