mirror of
https://github.com/sharkdp/bat
synced 2026-07-31 18:21:43 +00:00
chore: address all cargo clippy lints
* also do a bit of a doc cleanup for the `load_from_folder` fn
This commit is contained in:
committed by
Martin Nordholts
parent
d9fbd18541
commit
503c50b1ec
@@ -5,7 +5,7 @@ pub fn new_file_input<'a>(file: &'a Path, name: Option<&'a Path>) -> Input<'a> {
|
||||
named(Input::ordinary_file(file), name.or(Some(file)))
|
||||
}
|
||||
|
||||
pub fn new_stdin_input(name: Option<&Path>) -> Input {
|
||||
pub fn new_stdin_input(name: Option<&Path>) -> Input<'_> {
|
||||
named(Input::stdin(), name)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user