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

Update examples

This commit is contained in:
sharkdp
2020-04-22 21:21:47 +02:00
committed by David Peter
parent 49f4322054
commit 13f671b499
3 changed files with 4 additions and 10 deletions

View File

@@ -55,8 +55,8 @@ impl<'a> PrettyPrinter<'a> {
}
/// Add a file which should be pretty-printed
pub fn input_file(&mut self, path: &OsStr) -> &mut Self {
self.inputs.push(Input::ordinary_file(path));
pub fn input_file(&mut self, path: impl AsRef<OsStr>) -> &mut Self {
self.inputs.push(Input::ordinary_file(path.as_ref()));
self
}