Auto merge of #1699 - m-ou-se:panic-format, r=RalfJung

Remove unnecessary `format!()` in `panic!()`.

`panic!(format!(..))` will start giving a warning [soon](https://github.com/rust-lang/rust/pull/81645).
This commit is contained in:
bors 2021-02-02 21:57:26 +00:00
commit 34e22a8024

View File

@ -230,10 +230,10 @@ fn main() {
err => panic!("unknown error decoding -Zmiri-seed as hex: {:?}", err),
});
if seed_raw.len() > 8 {
panic!(format!(
panic!(
"-Zmiri-seed must be at most 8 bytes, was {}",
seed_raw.len()
));
);
}
let mut bytes = [0; 8];