Skip to content

Commit 34e22a8

Browse files
committed
Auto merge of #1699 - m-ou-se:panic-format, r=RalfJung
Remove unnecessary `format!()` in `panic!()`. `panic!(format!(..))` will start giving a warning [soon](rust-lang/rust#81645).
2 parents 39a7bd0 + c5bb291 commit 34e22a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/miri.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ fn main() {
230230
err => panic!("unknown error decoding -Zmiri-seed as hex: {:?}", err),
231231
});
232232
if seed_raw.len() > 8 {
233-
panic!(format!(
233+
panic!(
234234
"-Zmiri-seed must be at most 8 bytes, was {}",
235235
seed_raw.len()
236-
));
236+
);
237237
}
238238

239239
let mut bytes = [0; 8];

0 commit comments

Comments
 (0)