mirror of
https://github.com/sharkdp/bat
synced 2026-08-05 19:11:42 +00:00
Use unwrap
This commit is contained in:
+1
-4
@@ -2,8 +2,5 @@
|
||||
use bat::PrettyPrinter;
|
||||
|
||||
fn main() {
|
||||
PrettyPrinter::new()
|
||||
.input_file(file!())
|
||||
.print()
|
||||
.expect("no errors");
|
||||
PrettyPrinter::new().input_file(file!()).print().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user