hir: simplify fmt::Debug for hir::Path

This commit is contained in:
ljedrz 2018-11-13 16:15:16 +01:00
parent 58a2267c15
commit 5ea0e0d1aa

View file

@ -330,7 +330,7 @@ impl Path {
impl fmt::Debug for Path {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "path({})", print::to_string(print::NO_ANN, |s| s.print_path(self, false)))
write!(f, "path({})", self)
}
}