Remove a trivial cast.

This commit is contained in:
Dan Gohman
2017-11-08 10:40:39 -08:00
parent 24e185c8c5
commit 8b053aa923

View File

@@ -421,7 +421,8 @@ impl fmt::Display for Move {
impl fmt::Debug for Move {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
(self as &fmt::Display).fmt(f)
let as_display: &fmt::Display = self;
as_display.fmt(f)
}
}