Skip to content

Commit 3dd1072

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

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
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 <[email protected]")
7-
.homepage("www.mycompany.com")
8-
.support("- Open a support request by email to [email protected]"));
5+
setup_panic!(
6+
metadata!()
7+
.authors("My Company Support <[email protected]")
8+
.homepage("www.mycompany.com")
9+
.support("- Open a support request by email to [email protected]")
10+
);
911

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

0 commit comments

Comments
 (0)