mirror of
https://github.com/sharkdp/bat
synced 2026-08-07 19:31:42 +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
+2
-2
@@ -96,7 +96,7 @@ impl App {
|
||||
Ok(clap_app::build_app(interactive_output).get_matches_from(args))
|
||||
}
|
||||
|
||||
pub fn config(&self, inputs: &[Input]) -> Result<Config> {
|
||||
pub fn config(&self, inputs: &[Input]) -> Result<Config<'_>> {
|
||||
let style_components = self.style_components()?;
|
||||
|
||||
let extra_plain = self.matches.get_count("plain") > 1;
|
||||
@@ -338,7 +338,7 @@ impl App {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn inputs(&self) -> Result<Vec<Input>> {
|
||||
pub fn inputs(&self) -> Result<Vec<Input<'_>>> {
|
||||
let filenames: Option<Vec<&Path>> = self
|
||||
.matches
|
||||
.get_many::<PathBuf>("file-name")
|
||||
|
||||
Reference in New Issue
Block a user