diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-04-06 22:34:36 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-04-06 22:34:36 +0200 |
commit | 509f69c4a3edf2e5fb4f8e36d4d2684fae0e575d (patch) | |
tree | dec97aa1e06679930117db1255516a612528fd23 /src/event_exec.rs | |
parent | 804cbf98f7be3a1eb44e63ff092434a6243804c7 (diff) |
use &[] instead of &vec in execute in child
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r-- | src/event_exec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index d73faee..5e0f312 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -1104,7 +1104,7 @@ impl EventExec { .to_str() .context("event drag n drop: couldn't read path")?; - execute_in_child(DEFAULT_DRAGNDROP, &vec![path_str])?; + execute_in_child(DEFAULT_DRAGNDROP, &[path_str])?; Ok(()) } @@ -1931,7 +1931,7 @@ impl EventExec { /// Requires `nitrogen` to be installed. pub fn event_set_wallpaper(tab: &Tab) -> Result<()> { let Some(path_str) = tab.path_content.selected_path_string() else { return Ok(()); }; - let _ = execute_in_child("nitrogen", &vec!["--set-zoom-fill", "--save", &path_str]); + let _ = execute_in_child("nitrogen", &["--set-zoom-fill", "--save", &path_str]); Ok(()) } |