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

This commit is contained in:
Mara Bos 2021-02-02 21:40:30 +01:00
parent 39a7bd09f1
commit c5bb29141e

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];