mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-08 23:44:47 +02:00
Moved user_provided_filename to be contained within OrdinaryFile struct
This commit is contained in:
committed by
David Peter
parent
a3f8140fbe
commit
04fa84aea7
@ -1,6 +1,6 @@
|
||||
/// A simple program that prints its own source code using the bat library
|
||||
use bat::{
|
||||
config::{Config, InputFile},
|
||||
config::{Config, InputFile, OrdinaryFile},
|
||||
Controller, HighlightingAssets,
|
||||
};
|
||||
use std::ffi::OsStr;
|
||||
@ -9,7 +9,10 @@ fn main() {
|
||||
let path_to_this_file = OsStr::new(file!());
|
||||
|
||||
let config = Config {
|
||||
files: vec![InputFile::Ordinary(path_to_this_file)],
|
||||
files: vec![InputFile::Ordinary(OrdinaryFile::new(
|
||||
path_to_this_file,
|
||||
None,
|
||||
))],
|
||||
colored_output: true,
|
||||
true_color: true,
|
||||
..Default::default()
|
||||
|
Reference in New Issue
Block a user