Enable clippy::explicit_auto_deref
(#8753)
This PR enables the [`clippy::explicit_auto_deref`](https://rust-lang.github.io/rust-clippy/master/index.html#/explicit_auto_deref) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
6a9e8faad2
commit
659974411d
20 changed files with 126 additions and 128 deletions
|
@ -1859,7 +1859,7 @@ impl MultiBuffer {
|
|||
.cloned()
|
||||
.collect::<Vec<_>>();
|
||||
let snapshot = self.snapshot.borrow();
|
||||
excerpts_to_remove.sort_unstable_by(|a, b| a.cmp(b, &*snapshot));
|
||||
excerpts_to_remove.sort_unstable_by(|a, b| a.cmp(b, &snapshot));
|
||||
drop(snapshot);
|
||||
log::info!("Removing excerpts {:?}", excerpts_to_remove);
|
||||
self.remove_excerpts(excerpts_to_remove, cx);
|
||||
|
@ -1920,7 +1920,7 @@ impl MultiBuffer {
|
|||
|
||||
for (ix, entry) in excerpt_ids.iter().enumerate() {
|
||||
if ix == 0 {
|
||||
if entry.id.cmp(&ExcerptId::min(), &*snapshot).is_le() {
|
||||
if entry.id.cmp(&ExcerptId::min(), &snapshot).is_le() {
|
||||
panic!("invalid first excerpt id {:?}", entry.id);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue