Skip to content

Commit af4b7bc

Browse files
committed
clippy
1 parent ded97de commit af4b7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub fn get_window_exe(hwnd: HWND) -> Option<String> {
147147
return None;
148148
}
149149
let module_path = get_module_path(pid)?;
150-
module_path.split('\\').map(|v| v.to_string()).last()
150+
module_path.split('\\').map(|v| v.to_string()).next_back()
151151
}
152152

153153
pub fn set_foreground_window(hwnd: HWND) {

0 commit comments

Comments
 (0)