deprecate Vec::get
This commit is contained in:
@@ -210,7 +210,7 @@ fn path(w: &mut fmt::Formatter, path: &clean::Path, print_all: bool,
|
||||
let loc = current_location_key.get().unwrap();
|
||||
let cache = cache_key.get().unwrap();
|
||||
let abs_root = root(&**cache, loc.as_slice());
|
||||
let rel_root = match path.segments.get(0).name.as_slice() {
|
||||
let rel_root = match path.segments[0].name.as_slice() {
|
||||
"self" => Some("./".to_string()),
|
||||
_ => None,
|
||||
};
|
||||
|
||||
@@ -551,7 +551,7 @@ fn write_shared(cx: &Context,
|
||||
}
|
||||
mydst.push(format!("{}.{}.js",
|
||||
remote_item_type.to_static_str(),
|
||||
*remote_path.get(remote_path.len() - 1)));
|
||||
remote_path[remote_path.len() - 1]));
|
||||
let all_implementors = try!(collect(&mydst, krate.name.as_slice(),
|
||||
"implementors"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user