We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2655c89 commit 19aae8eCopy full SHA for 19aae8e
src/librustc_metadata/decoder.rs
@@ -1449,8 +1449,9 @@ pub fn get_dylib_dependency_formats(cdata: Cmd)
1449
debug!("found dylib deps: {}", formats.as_str());
1450
for spec in formats.as_str().split(',') {
1451
if spec.is_empty() { continue }
1452
- let cnum = spec.split(':').nth(0).unwrap();
1453
- let link = spec.split(':').nth(1).unwrap();
+ let mut split = spec.split(':');
+ let cnum = split.next().unwrap();
1454
+ let link = split.next().unwrap();
1455
let cnum: ast::CrateNum = cnum.parse().unwrap();
1456
let cnum = cdata.cnum_map.borrow()[cnum];
1457
result.push((cnum, if link == "d" {
0 commit comments