Skip to content

Commit 5163f09

Browse files
committed
fmt
1 parent 96cfb20 commit 5163f09

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/librustc_middle/mir/interpret/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,7 @@ pub struct AllocId(pub u64);
172172
// all the Miri types.
173173
impl fmt::Debug for AllocId {
174174
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
175-
if f.alternate() {
176-
write!(f, "a{}", self.0)
177-
} else {
178-
write!(f, "alloc{}", self.0)
179-
}
175+
if f.alternate() { write!(f, "a{}", self.0) } else { write!(f, "alloc{}", self.0) }
180176
}
181177
}
182178

src/librustc_mir/util/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::collections::BTreeSet;
2-
use std::fmt::{Debug, Display};
32
use std::fmt::Write as _;
3+
use std::fmt::{Debug, Display};
44
use std::fs;
55
use std::io::{self, Write};
66
use std::path::{Path, PathBuf};

0 commit comments

Comments
 (0)