Skip to content

Commit

Permalink
Remove unnecessary format!() in panic!().
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Feb 2, 2021
1 parent 39a7bd0 commit c5bb291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c5bb291

Please sign in to comment.