librustdoc: use tuple indexing
This commit is contained in:
parent
0c5d22c9cd
commit
e792338318
4 changed files with 7 additions and 7 deletions
|
@ -346,7 +346,7 @@ fn primitive_link(f: &mut fmt::Formatter,
|
|||
Some(root) => {
|
||||
try!(write!(f, "<a href='{}{}/primitive.{}.html'>",
|
||||
root,
|
||||
path.ref0().head().unwrap(),
|
||||
path.0.head().unwrap(),
|
||||
prim.to_url_str()));
|
||||
needs_termination = true;
|
||||
}
|
||||
|
|
|
@ -323,7 +323,7 @@ pub fn run(mut krate: clean::Crate,
|
|||
}).unwrap_or(HashMap::new());
|
||||
let mut cache = Cache {
|
||||
impls: HashMap::new(),
|
||||
external_paths: paths.iter().map(|(&k, v)| (k, v.ref0().clone()))
|
||||
external_paths: paths.iter().map(|(&k, v)| (k, v.0.clone()))
|
||||
.collect(),
|
||||
paths: paths,
|
||||
implementors: HashMap::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue