Skip to content

Commit

Permalink
Auto merge of #1699 - m-ou-se:panic-format, r=RalfJung
Browse files Browse the repository at this point in the history
Remove unnecessary `format!()` in `panic!()`.

`panic!(format!(..))` will start giving a warning [soon](rust-lang/rust#81645).
  • Loading branch information
bors committed Feb 2, 2021
2 parents 39a7bd0 + c5bb291 commit 34e22a8
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 34e22a8

Please sign in to comment.