From 5a8ff70f854c0d6fef3e5b7be12b750aab37b9f2 Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Thu, 3 Apr 2025 20:36:36 +0200 Subject: Placate clippy --- rtic-macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rtic-macros/src') diff --git a/rtic-macros/src/lib.rs b/rtic-macros/src/lib.rs index c464ab0..ff32f24 100644 --- a/rtic-macros/src/lib.rs +++ b/rtic-macros/src/lib.rs @@ -88,7 +88,7 @@ with_backend! { // // If no "target" directory is found, / 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") { -- cgit v1.2.3