@@ -1,10 +1,7 @@
11/// A program that prints its own source code using the bat library
22use bat::{LineRange, PrettyPrinter, WrappingMode};
3−use std::ffi::OsStr;
43
54fn main() {
6− let path_to_this_file = OsStr::new(file!());
7−
85 PrettyPrinter::new()
96 .header(true)
107 .grid(true)
@@ -14,7 +11,7 @@ fn main() {
1411 .highlight(LineRange::new(line!() as usize, line!() as usize))
1512 .theme("1337")
1613 .wrapping_mode(WrappingMode::Character)
17− .input_file(path_to_this_file)
14+ .input_file(file!())
1815 .print()
1916 .expect("no errors");
2017}