From 8b053aa923ef28559c3816ab71bae9f4ca9fbc40 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 8 Nov 2017 10:40:39 -0800 Subject: [PATCH] Remove a trivial cast. --- lib/cretonne/src/regalloc/solver.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cretonne/src/regalloc/solver.rs b/lib/cretonne/src/regalloc/solver.rs index 39f6e3a83c..69b7bd1dd3 100644 --- a/lib/cretonne/src/regalloc/solver.rs +++ b/lib/cretonne/src/regalloc/solver.rs @@ -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) } }