1
Fork 0

First step to generic trait impls

This commit is contained in:
Guillaume Gomez 2018-07-17 01:14:52 +02:00
parent 54ea8eb232
commit 39849d5128
3 changed files with 114 additions and 20 deletions

View file

@ -2082,6 +2082,7 @@ where F: Fn(&mut fmt::Formatter) -> fmt::Result {
impl<'a> fmt::Display for Item<'a> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
debug_assert!(!self.item.is_stripped());
println!("=> {:?}", self.item.name);
// Write the breadcrumb trail header for the top
write!(fmt, "<h1 class='fqn'><span class='in-band'>")?;
match self.item.inner {