mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-02 03:12:25 +01:00
Use unwrap
This commit is contained in:
@@ -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