Skip to content

Commit 06f8ae7

Browse files
committed
chore: fix clippy::double-ended-iterator-last
1 parent eb4dff4 commit 06f8ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx-sys/build/vendored.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ fn download(cache_dir: &Path, url: &str) -> Result<PathBuf, Box<dyn StdError>> {
364364
// File does not exist or is zero bytes
365365
!file_path.exists() || file_path.metadata().is_ok_and(|m| m.len() < 1)
366366
}
367-
let filename = url.split('/').last().unwrap();
367+
let filename = url.split('/').next_back().unwrap();
368368
let file_path = cache_dir.join(filename);
369369
if proceed_with_download(&file_path) {
370370
println!("Downloading: {} -> {}", url, file_path.display());

0 commit comments

Comments
 (0)