git.iko.soy
/
bat
readme
files
commits
refs
on
master
help
sign in
Use unwrap
commit
b76f5e72d44cdf5850268cc4a867516953436092
author
sharkdp
<davidpeter@web.de>
date
Wed 22 Apr 2020, 21:46
(7 years ago)
parent
702cb19
3 files changed
+3
−6
compare with master
unified
split
examples/advanced.rs
+1
−1
examples/cat.rs
+1
−1
examples/simple.rs
+1
−4
examples/advanced.rs
+1
−1
@@ -13,5 +13,5 @@ fn main() {
13
13
.wrapping_mode(WrappingMode::Character)
14
14
.input_file(file!())
15
15
.print()
16
−
.expect(
"no errors"
);
16
+
.unwrap();
17
17
}
examples/cat.rs
+1
−1
@@ -9,5 +9,5 @@ fn main() {
9
9
.line_numbers(
true
)
10
10
.input_files(std::env::args_os().skip(
1
))
11
11
.print()
12
−
.expect(
"no errors"
);
12
+
.unwrap();
13
13
}
examples/simple.rs
+1
−4
@@ -2,8 +2,5 @@
2
2
use
bat::PrettyPrinter;
3
3
4
4
fn
main() {
5
−
PrettyPrinter::new()
6
−
.input_file(file!())
7
−
.print()
8
−
.expect(
"no errors"
);
5
+
PrettyPrinter::new()
.input_file(file!()).print().unwrap();
9
6
}
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list