mirror of
https://github.com/sharkdp/bat
synced 2024-11-26 05:40:21 +00:00
Use unwrap
This commit is contained in:
parent
702cb198da
commit
b76f5e72d4
3 changed files with 3 additions and 6 deletions
|
@ -13,5 +13,5 @@ fn main() {
|
|||
.wrapping_mode(WrappingMode::Character)
|
||||
.input_file(file!())
|
||||
.print()
|
||||
.expect("no errors");
|
||||
.unwrap();
|
||||
}
|
||||
|
|
|
@ -9,5 +9,5 @@ fn main() {
|
|||
.line_numbers(true)
|
||||
.input_files(std::env::args_os().skip(1))
|
||||
.print()
|
||||
.expect("no errors");
|
||||
.unwrap();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue