review - better error names/doc

This commit is contained in:
François Mockers
2021-07-05 01:33:51 +02:00
parent fc97fbeef3
commit afb5b2150a
2 changed files with 9 additions and 8 deletions

View File

@@ -869,7 +869,7 @@ fn render_assoc_item(
match href(did.expect_def_id(), cx) {
Ok(p) => Some(format!("{}#{}.{}", p.0, ty, name)),
Err(HrefError::UnknownLocation) => None,
Err(HrefError::DocumentationNotBuilt) => None,
Err(_) => Some(format!("#{}.{}", ty, name)),
}
}