Fixing remaining warnings and errors throughout
This commit is contained in:
parent
f9a32cdabc
commit
c765a8e7ad
22 changed files with 185 additions and 277 deletions
|
@ -804,13 +804,13 @@ impl<'a> fmt::Show for Item<'a> {
|
|||
fn fmt(it: &Item<'a>, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
match attr::find_stability(it.item.attrs.iter()) {
|
||||
Some(ref stability) => {
|
||||
write!(fmt.buf,
|
||||
if_ok!(write!(fmt.buf,
|
||||
"<a class='stability {lvl}' title='{reason}'>{lvl}</a>",
|
||||
lvl = stability.level.to_str(),
|
||||
reason = match stability.text {
|
||||
Some(ref s) => (*s).clone(),
|
||||
None => InternedString::new(""),
|
||||
});
|
||||
}));
|
||||
}
|
||||
None => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue