We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clippy::double-ended-iterator-last
1 parent 587012b commit 0b7d8abCopy full SHA for 0b7d8ab
src/bootstrap/src/core/build_steps/test.rs
@@ -3619,7 +3619,7 @@ impl Step for TestFloatParse {
3619
let bootstrap_host = builder.config.build;
3620
let compiler = builder.compiler(builder.top_stage, bootstrap_host);
3621
let path = self.path.to_str().unwrap();
3622
- let crate_name = self.path.components().last().unwrap().as_os_str().to_str().unwrap();
+ let crate_name = self.path.iter().next_back().unwrap().to_str().unwrap();
3623
3624
builder.ensure(tool::TestFloatParse { host: self.host });
3625
0 commit comments