Skip to content

Commit 0b7d8ab

Browse files
committed
fix clippy::double-ended-iterator-last
1 parent 587012b commit 0b7d8ab

File tree

1 file changed

+1
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/src/core/build_steps/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3619,7 +3619,7 @@ impl Step for TestFloatParse {
36193619
let bootstrap_host = builder.config.build;
36203620
let compiler = builder.compiler(builder.top_stage, bootstrap_host);
36213621
let path = self.path.to_str().unwrap();
3622-
let crate_name = self.path.components().last().unwrap().as_os_str().to_str().unwrap();
3622+
let crate_name = self.path.iter().next_back().unwrap().to_str().unwrap();
36233623

36243624
builder.ensure(tool::TestFloatParse { host: self.host });
36253625

0 commit comments

Comments
 (0)