We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ded97de commit af4b7bcCopy full SHA for af4b7bc
src/utils/window.rs
@@ -147,7 +147,7 @@ pub fn get_window_exe(hwnd: HWND) -> Option<String> {
147
return None;
148
}
149
let module_path = get_module_path(pid)?;
150
- module_path.split('\\').map(|v| v.to_string()).last()
+ module_path.split('\\').map(|v| v.to_string()).next_back()
151
152
153
pub fn set_foreground_window(hwnd: HWND) {
0 commit comments