1
Fork 0

only remove link for TyMethod

This commit is contained in:
François Mockers 2021-07-06 20:19:54 +02:00
parent 441a350e2c
commit a75e6292c5

View file

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