mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
Use unwrap
This commit is contained in:
1 parent
702cb198da
commit
b76f5e72d4
3 files changed
+3
-6
No files matched your search
@@ -13,5 +13,5 @@ fn main() {
|
|||||||
.wrapping_mode(WrappingMode::Character)
|
.wrapping_mode(WrappingMode::Character)
|
||||||
.input_file(file!())
|
.input_file(file!())
|
||||||
.print()
|
.print()
|
||||||
.expect("no errors");
|
.unwrap();
|
||||||
}
|
}
|
||||||
+1
-1
@@ -9,5 +9,5 @@ fn main() {
|
|||||||
.line_numbers(true)
|
.line_numbers(true)
|
||||||
.input_files(std::env::args_os().skip(1))
|
.input_files(std::env::args_os().skip(1))
|
||||||
.print()
|
.print()
|
||||||
.expect("no errors");
|
.unwrap();
|
||||||
}
|
}
|
||||||
+1
-4
@@ -2,8 +2,5 @@
|
|||||||
use bat::PrettyPrinter;
|
use bat::PrettyPrinter;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
PrettyPrinter::new()
|
PrettyPrinter::new().input_file(file!()).print().unwrap();
|
||||||
.input_file(file!())
|
|
||||||
.print()
|
|
||||||
.expect("no errors");
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user