Skip to content

Commit c4eef51

Browse files
committed
Auto-deref, ... okay clippy
1 parent 72a2875 commit c4eef51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libwasmvm/src/handle_vm_panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::any::Any;
66
/// as those cases are not expected to happen during healthy operations.
77
pub fn handle_vm_panic(what: &str, err: Box<dyn Any + Send + 'static>) {
88
let err: &str = match (err.downcast_ref::<&str>(), err.downcast_ref::<String>()) {
9-
(Some(str), ..) => *str,
9+
(Some(str), ..) => str,
1010
(.., Some(str)) => str,
1111
(None, None) => "[unusable panic payload]",
1212
};

0 commit comments

Comments
 (0)