Skip to content

Commit b49ee6e

Browse files
committed
chore: Update to 2024 Edition
1 parent f0fadbb commit b49ee6e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resolver = "2"
88
[workspace.package]
99
repository = "https://github.com/rust-cli/human-panic"
1010
license = "MIT OR Apache-2.0"
11-
edition = "2021"
11+
edition = "2024"
1212
rust-version = "1.88" # MSRV
1313
include = [
1414
"build.rs",

tests/custom-panic/src/main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ use human_panic::metadata;
22
use human_panic::setup_panic;
33

44
fn main() {
5-
setup_panic!(metadata!()
6-
.authors("My Company Support <support@mycompany.com")
7-
.homepage("www.mycompany.com")
8-
.support("- Open a support request by email to support@mycompany.com"));
5+
setup_panic!(
6+
metadata!()
7+
.authors("My Company Support <support@mycompany.com")
8+
.homepage("www.mycompany.com")
9+
.support("- Open a support request by email to support@mycompany.com")
10+
);
911

1012
println!("A normal log message");
1113
panic!("OMG EVERYTHING IS ON FIRE!!!");

tests/custom-panic/tests/integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn debug() {
3232
.assert()
3333
.stderr_eq(snapbox::str![[r#"
3434
35-
thread 'main' ([..]) panicked at tests/custom-panic/src/main.rs:11:5:
35+
thread 'main' ([..]) panicked at tests/custom-panic/src/main.rs:13:5:
3636
OMG EVERYTHING IS ON FIRE!!!
3737
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
3838

0 commit comments

Comments
 (0)