diff --git a/src/desc.rs b/src/desc.rs index e5c0f9a0..70280863 100644 --- a/src/desc.rs +++ b/src/desc.rs @@ -257,7 +257,7 @@ mod tests { .expect(format!("expected error for {}", name).as_ref()); match res { Error::Msg(msg) => assert_eq!(msg, format!("'{}' is not a valid label name", name)), - other => panic!(other), + other => panic!("{}", other), }; } } @@ -272,7 +272,7 @@ mod tests { .expect(format!("expected error for {}", name).as_ref()); match res { Error::Msg(msg) => assert_eq!(msg, format!("'{}' is not a valid label name", name)), - other => panic!(other), + other => panic!("{}", other), }; } } @@ -287,7 +287,7 @@ mod tests { Error::Msg(msg) => { assert_eq!(msg, format!("'{}' is not a valid metric name", name)) } - other => panic!(other), + other => panic!("{}", other), }; } }