Move to literal string in panic! macro

This commit is contained in:
Lewin Bormann
2021-03-04 19:32:31 +01:00
parent eafdaaa4be
commit 9a29525cd7

View File

@@ -164,7 +164,7 @@ pub mod tests {
use serde_json as json;
match json::from_str::<ConsoleApplicationSecret>(SECRET) {
Ok(s) => assert!(s.installed.is_some() && s.web.is_none()),
Err(err) => panic!(err),
Err(err) => panic!("Encountered error parsing ConsoleApplicationSecret: {}", err),
}
}
}