Land release blocker fixes and workspace cleanup
This commit is contained in:
@@ -396,7 +396,11 @@ fn detect_focused_window_class_macos() -> Option<String> {
|
||||
return None;
|
||||
}
|
||||
let name = String::from_utf8_lossy(&output.stdout).trim().to_string();
|
||||
if name.is_empty() { None } else { Some(name) }
|
||||
if name.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(name)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
@@ -421,7 +425,11 @@ fn detect_focused_window_class_windows() -> Option<String> {
|
||||
return None;
|
||||
}
|
||||
let name = String::from_utf8_lossy(&output.stdout).trim().to_string();
|
||||
if name.is_empty() { None } else { Some(name) }
|
||||
if name.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(name)
|
||||
}
|
||||
}
|
||||
|
||||
fn trigger_paste_keystroke() -> Result<String, String> {
|
||||
@@ -473,7 +481,10 @@ fn trigger_undo_keystroke() -> Result<String, String> {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn linux_paste(xdg_session_type: Option<&str>, wayland_display_set: bool) -> Result<String, String> {
|
||||
fn linux_paste(
|
||||
xdg_session_type: Option<&str>,
|
||||
wayland_display_set: bool,
|
||||
) -> Result<String, String> {
|
||||
for tool in pick_linux_backend_order(xdg_session_type, wayland_display_set) {
|
||||
match run_linux_tool(tool) {
|
||||
Ok(()) => return Ok(tool.to_string()),
|
||||
|
||||
Reference in New Issue
Block a user