1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 03:42:26 +01:00

Fix all lints that are new with Rust 1.54

They are all of the following type:
https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
This commit is contained in:
Martin Nordholts
2021-08-18 20:37:38 +02:00
parent cbd96237fd
commit ed09f90e5e
7 changed files with 16 additions and 16 deletions

View File

@@ -51,7 +51,7 @@ impl InputDescription {
pub fn title(&self) -> &String {
match self.title.as_ref() {
Some(ref title) => title,
Some(title) => title,
None => &self.name,
}
}