From 15f9e82af1f970eebe18acafc7b4800d588e8e1d Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Thu, 9 Dec 2021 18:29:34 -0800 Subject: [PATCH] fix formatting and clippy --- src/cmd_line.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd_line.rs b/src/cmd_line.rs index 16c23f2..100aba8 100644 --- a/src/cmd_line.rs +++ b/src/cmd_line.rs @@ -169,12 +169,12 @@ pub fn handle_command_line_arguments(args: Vec) -> Result<(), String> { .value_of("wayland_app_id") .map(|v| v.to_owned()) .or_else(|| std::env::var("NEOVIDE_APP_ID").ok()) - .unwrap_or("neovide".to_owned()), + .unwrap_or_else(|| "neovide".to_owned()), x11_wm_class: matches .value_of("x11_wm_class") .map(|v| v.to_owned()) .or_else(|| std::env::var("NEOVIDE_X11_WM_CLASS").ok()) - .unwrap_or("neovide".to_owned()), + .unwrap_or_else(|| "neovide".to_owned()), }); Ok(()) }