Skip to content

Commit bc46e45

Browse files
committed
I think I forgot to reformat these after backporting some updates
1 parent 2e3f2e8 commit bc46e45

File tree

2 files changed

+3
-4
lines changed
  • listings
    • ch13-functional-features/listing-13-19/src
    • ch19-patterns-and-matching/listing-19-29/src

2 files changed

+3
-4
lines changed

listings/ch13-functional-features/listing-13-19/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ fn main() {
1111
process::exit(1);
1212
});
1313

14-
1514
if let Err(e) = run(config) {
1615
eprintln!("Application error: {e}");
1716
process::exit(1);

listings/ch19-patterns-and-matching/listing-19-29/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ fn main() {
77
let msg = Message::Hello { id: 5 };
88

99
match msg {
10-
Message::Hello {
11-
id: id @ 3..=7,
12-
} => println!("Found an id in range: {id}"),
10+
Message::Hello { id: id @ 3..=7 } => {
11+
println!("Found an id in range: {id}")
12+
}
1313
Message::Hello { id: 10..=12 } => {
1414
println!("Found an id in another range")
1515
}

0 commit comments

Comments
 (0)