File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ resolver = "2"
88[workspace .package ]
99repository = " https://github.com/rust-cli/human-panic"
1010license = " MIT OR Apache-2.0"
11- edition = " 2021 "
11+ edition = " 2024 "
1212rust-version = " 1.88" # MSRV
1313include = [
1414 " build.rs" ,
Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ use human_panic::metadata;
22use human_panic:: setup_panic;
33
44fn 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!!!" ) ;
Original file line number Diff line number Diff 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:
3636OMG EVERYTHING IS ON FIRE!!!
3737note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
3838
You can’t perform that action at this time.
0 commit comments