1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-09 19:51:48 +00:00

Rename field name, new constructors

This commit is contained in:
sharkdp
2020-04-11 19:17:36 +02:00
committed by David Peter
parent 04fa84aea7
commit 90e7d2fe33
6 changed files with 27 additions and 17 deletions
+3 -4
View File
@@ -167,10 +167,9 @@ fn run() -> Result<bool> {
Ok(true)
} else {
let mut config = app.config()?;
config.files = vec![InputFile::Ordinary(OrdinaryFile::new(
OsStr::new("cache"),
None,
))];
config.files = vec![InputFile::Ordinary(OrdinaryFile::from_path(OsStr::new(
"cache",
)))];
run_controller(&config)
}