None
}
- pub fn to_string(&self) -> &'static str {
+ pub fn as_str(&self) -> &'static str {
match *self {
PrimitiveType::Isize => "isize",
PrimitiveType::I8 => "i8",
}
pub fn to_url_str(&self) -> &'static str {
- self.to_string()
+ self.as_str()
}
/// Creates a rustdoc-specific node id for primitive types.
tybounds(f, typarams)
}
clean::Infer => write!(f, "_"),
- clean::Primitive(prim) => primitive_link(f, prim, prim.to_string()),
+ clean::Primitive(prim) => primitive_link(f, prim, prim.as_str()),
clean::BareFunction(ref decl) => {
write!(f, "{}{}fn{}{}",
UnsafetySpace(decl.unsafety),