Skip to content

Commit

Permalink
Fixed the string being double-referenced, which isn't an issue, but i…
Browse files Browse the repository at this point in the history
…sn't helpful.
  • Loading branch information
Earthmark authored and ralfbiedert committed Feb 13, 2024
1 parent 148ff24 commit 618ecbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/patterns/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pub fn get_panic_message(pan: &(dyn Any + Send)) -> &str {
match pan.downcast_ref::<&'static str>() {
Some(s) => *s,
None => match pan.downcast_ref::<String>() {
Some(s) => &s,
Some(s) => s,
None => "Any { .. }",
},
}
Expand Down

0 comments on commit 618ecbf

Please sign in to comment.