aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros
diff options
context:
space:
mode:
authordatdenkikniet <jcdra1@gmail.com>2025-04-03 20:36:36 +0200
committerdatdenkikniet <38322042+datdenkikniet@users.noreply.github.com>2025-04-03 20:43:04 +0200
commit5a8ff70f854c0d6fef3e5b7be12b750aab37b9f2 (patch)
tree87783ee32ee6822834bbc7dff77a8e1766b7c70d /rtic-macros
parentbe6648c0eefebc1b346966892e4da8ce435e5bf8 (diff)
Placate clippy
Diffstat (limited to 'rtic-macros')
-rw-r--r--rtic-macros/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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, <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") {