We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a2875 commit c4eef51Copy full SHA for c4eef51
libwasmvm/src/handle_vm_panic.rs
@@ -6,7 +6,7 @@ use std::any::Any;
6
/// as those cases are not expected to happen during healthy operations.
7
pub fn handle_vm_panic(what: &str, err: Box<dyn Any + Send + 'static>) {
8
let err: &str = match (err.downcast_ref::<&str>(), err.downcast_ref::<String>()) {
9
- (Some(str), ..) => *str,
+ (Some(str), ..) => str,
10
(.., Some(str)) => str,
11
(None, None) => "[unusable panic payload]",
12
};
0 commit comments