blob: c30cbd2ac4af28bbe369e00f4d2e133eb9b60451 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/// A simple program that prints its own source code using the bat library
use bat::PrettyPrinter;
use std::ffi::OsStr;
fn main() {
let path_to_this_file = OsStr::new(file!());
PrettyPrinter::new()
.input_file(path_to_this_file)
.run()
.expect("no errors");
}
|