diff --git a/src/models/application/preferences/mod.rs b/src/models/application/preferences/mod.rs index fb48b42d..9898e5d6 100644 --- a/src/models/application/preferences/mod.rs +++ b/src/models/application/preferences/mod.rs @@ -321,13 +321,10 @@ impl Preferences { let extension = path_extension(Some(path))?; // Build a command using the command sub-key. - let Some(program) = self + let program = self .data .as_ref() - .and_then(|data| data[TYPES_KEY][extension][FORMAT_TOOL_KEY]["command"].as_str()) - else { - return None; - }; + .and_then(|data| data[TYPES_KEY][extension][FORMAT_TOOL_KEY]["command"].as_str())?; let mut command = process::Command::new(program); // Parse and add options to command, if present. diff --git a/src/presenters/modes/normal.rs b/src/presenters/modes/normal.rs index d4264e60..4bbb6f8a 100644 --- a/src/presenters/modes/normal.rs +++ b/src/presenters/modes/normal.rs @@ -41,7 +41,7 @@ pub fn display( presenter.present()?; } else { - let content = vec![ + let content = [ format!("Amp v{}", env!("CARGO_PKG_VERSION")), String::from("© 2015-2024 Jordan MacDonald"), String::from(" "),