Clippy trivially_copy_pass_by_ref
This commit is contained in:
@@ -65,7 +65,7 @@ fn impls_for_trait(
|
||||
|
||||
Some(
|
||||
impls
|
||||
.lookup_impl_blocks_for_trait(&tr)
|
||||
.lookup_impl_blocks_for_trait(tr)
|
||||
.map(|imp| NavigationTarget::from_impl_block(db, imp))
|
||||
.collect(),
|
||||
)
|
||||
|
||||
@@ -213,7 +213,7 @@ impl RunningLineCol {
|
||||
self.col_adjust = TextUnit::from(0);
|
||||
}
|
||||
|
||||
fn adjust_col(&mut self, range: &TextRange) {
|
||||
fn adjust_col(&mut self, range: TextRange) {
|
||||
self.col_adjust += range.len() - TextUnit::from(1);
|
||||
}
|
||||
}
|
||||
@@ -244,7 +244,7 @@ pub fn translate_offset_with_edit(
|
||||
let clamp = offset.min(x.start());
|
||||
return res.to_line_col(clamp);
|
||||
} else {
|
||||
res.adjust_col(x);
|
||||
res.adjust_col(*x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user