auto merge of #1174 : kmcallister/servo/au, r=larsbergstrom

Polymorphism strikes again.  This should have been **obj but let's switch to an
explicit pattern match to be safe.

Fixes #1172.

r? @larsbergstrom
This commit is contained in:
bors-servo 2013-11-02 21:22:30 -07:00
commit 712abd4cbb

View file

@ -21,7 +21,8 @@ impl Clone for Au {
impl fmt::Default for Au {
fn fmt(obj: &Au, f: &mut fmt::Formatter) {
write!(f.buf, "Au({})", *obj);
let Au(n) = *obj;
write!(f.buf, "Au({})", n);
}
}