Placate clippy

This commit is contained in:
datdenkikniet 2025-04-03 20:36:36 +02:00 committed by datdenkikniet
parent be6648c0ee
commit 5a8ff70f85
3 changed files with 6 additions and 6 deletions

View file

@ -88,7 +88,7 @@ with_backend! {
//
// If no "target" directory is found, <project_dir>/<out_dir_root> is used
for path in out_dir.ancestors() {
if let Some(dir) = path.components().last() {
if let Some(dir) = path.components().next_back() {
let dir = dir.as_os_str().to_str().unwrap();
if dir.starts_with("thumbv") || dir.starts_with("riscv") {