mirror of
https://github.com/sharkdp/bat
synced 2026-07-28 17:51:44 +00:00
Use deref coercion to simplify some argument passing
This commit is contained in:
committed by
Martin Nordholts
parent
7956485e37
commit
4baa346aae
+1
-1
@@ -50,7 +50,7 @@ impl InputDescription {
|
||||
}
|
||||
|
||||
pub fn title(&self) -> &String {
|
||||
match self.title.as_ref() {
|
||||
match &self.title {
|
||||
Some(title) => title,
|
||||
None => &self.name,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user