From 577b119e8f58ca43275c14fa1beef030e258b18f Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 7 Apr 2025 10:05:42 +0800 Subject: [PATCH] clippy --- plugins/shell/src/scope.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/shell/src/scope.rs b/plugins/shell/src/scope.rs index 3a450afa..35fdeaff 100644 --- a/plugins/shell/src/scope.rs +++ b/plugins/shell/src/scope.rs @@ -304,7 +304,7 @@ impl ShellScope<'_> { .map(|s| { std::path::PathBuf::from(s) .components() - .last() + .next_back() .unwrap() .as_os_str() .to_string_lossy()