only remove link for TyMethod
This commit is contained in:
parent
441a350e2c
commit
a75e6292c5
1 changed files with 4 additions and 4 deletions
|
@ -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)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue