Skip to content

Commit b2a9c32

Browse files
committed
Remove unneeded formatting from key! macro panic
1 parent 6a6c379 commit b2a9c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ macro_rules! key {
223223
const OUTPUT: $crate::key::Key = match $crate::key::Key::try_parse($key) {
224224
::std::result::Result::Ok(key) => key,
225225
::std::result::Result::Err($crate::key::InvalidKeyStr) => {
226-
panic!("{}", $crate::key::InvalidKeyStr::description())
226+
panic!($crate::key::InvalidKeyStr::description())
227227
}
228228
};
229229
OUTPUT

0 commit comments

Comments
 (0)