Skip to content

Commit 577b119

Browse files
committed
clippy
1 parent c54e4f6 commit 577b119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/shell/src/scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ impl ShellScope<'_> {
304304
.map(|s| {
305305
std::path::PathBuf::from(s)
306306
.components()
307-
.last()
307+
.next_back()
308308
.unwrap()
309309
.as_os_str()
310310
.to_string_lossy()

0 commit comments

Comments
 (0)