1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-14 09:12:24 +01: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

View File

@@ -267,7 +267,7 @@ mod tests {
writeln!(temp_file, "{}", first_line).unwrap();
}
let input_file = InputFile::Ordinary(OrdinaryFile::new(OsStr::new(&file_path), None));
let input_file = InputFile::Ordinary(OrdinaryFile::from_path(OsStr::new(&file_path)));
let syntax = self.assets.get_syntax(
None,
input_file,