single source for a particular package name ({}).", dep)));
}
- let summary = pkgs.get(0).clone();
+ let summary = pkgs[0].clone();
let name = summary.get_name().to_string();
let source_id = summary.get_source_id().clone();
let version = summary.get_version().clone();
let parts: Vec<&str> = output.trim().split('-').collect();
assert!(parts.len() == 2, "rustc --print-file-name output has changed");
- Ok((parts.get(0).to_string(), parts.get(1).to_string()))
+ Ok((parts[0].to_string(), parts[1].to_string()))
}
/// Prepare this context, ensuring that all filesystem directories are in
}
}).collect();
files.sort();
- let file0 = files.get(0).as_slice();
- let file1 = files.get(1).as_slice();
+ let file0 = files[0].as_slice();
+ let file1 = files[1].as_slice();
println!("{} {}", file0, file1);
assert!(file0.ends_with(".rlib") || file1.ends_with(".rlib"));
assert!(file0.ends_with(os::consts::DLL_SUFFIX) ||
}
}).collect();
files.sort();
- let file0 = files.get(0).as_slice();
- let file1 = files.get(1).as_slice();
+ let file0 = files[0].as_slice();
+ let file1 = files[1].as_slice();
println!("{} {}", file0, file1);
assert!(file0.ends_with(".rlib") || file1.ends_with(".rlib"));
assert!(file0.ends_with(os::consts::DLL_SUFFIX) ||