Skip to content

Commit 87f9cd6

Browse files
committed
Use explicit trait call
1 parent 907d92b commit 87f9cd6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/addr.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,28 +211,28 @@ impl fmt::Debug for VirtAddr {
211211
impl fmt::Binary for VirtAddr {
212212
#[inline]
213213
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
214-
self.0.fmt(f)
214+
fmt::Binary::fmt(&self.0, f)
215215
}
216216
}
217217

218218
impl fmt::LowerHex for VirtAddr {
219219
#[inline]
220220
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
221-
self.0.fmt(f)
221+
fmt::LowerHex::fmt(&self.0, f)
222222
}
223223
}
224224

225225
impl fmt::Octal for VirtAddr {
226226
#[inline]
227227
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
228-
self.0.fmt(f)
228+
fmt::Octal::fmt(&self.0, f)
229229
}
230230
}
231231

232232
impl fmt::UpperHex for VirtAddr {
233233
#[inline]
234234
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
235-
self.0.fmt(f)
235+
fmt::UpperHex::fmt(&self.0, f)
236236
}
237237
}
238238

@@ -418,28 +418,28 @@ impl fmt::Debug for PhysAddr {
418418
impl fmt::Binary for PhysAddr {
419419
#[inline]
420420
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
421-
self.0.fmt(f)
421+
fmt::Binary::fmt(&self.0, f)
422422
}
423423
}
424424

425425
impl fmt::LowerHex for PhysAddr {
426426
#[inline]
427427
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
428-
self.0.fmt(f)
428+
fmt::LowerHex::fmt(&self.0, f)
429429
}
430430
}
431431

432432
impl fmt::Octal for PhysAddr {
433433
#[inline]
434434
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
435-
self.0.fmt(f)
435+
fmt::Octal::fmt(&self.0, f)
436436
}
437437
}
438438

439439
impl fmt::UpperHex for PhysAddr {
440440
#[inline]
441441
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
442-
self.0.fmt(f)
442+
fmt::UpperHex::fmt(&self.0, f)
443443
}
444444
}
445445

0 commit comments

Comments
 (0)