Skip to content

Commit f42863c

Browse files
committed
Use next() instead of nth(0)
1 parent 3f46046 commit f42863c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ fn default_readme_from_package_root(package_root: &Path) -> Option<String> {
15321532
.map(|&fname| package_root.join(Path::new(fname)))
15331533
.filter(|path| path.is_file())
15341534
.flat_map(|path| path.file_name().map(|fname| fname.to_string_lossy().into_owned()))
1535-
.nth(0)
1535+
.next()
15361536
}
15371537

15381538
/// Checks a list of build targets, and ensures the target names are unique within a vector.

0 commit comments

Comments
 (0)