From 9059dcb4c1950fd383b919d2d5f8a240793e6d0a Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Mon, 6 Jun 2022 21:22:00 +0200 Subject: [PATCH] fix: clippy warning --- espanso-migrate/src/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espanso-migrate/src/convert.rs b/espanso-migrate/src/convert.rs index 4e9b4c5..16edc7e 100644 --- a/espanso-migrate/src/convert.rs +++ b/espanso-migrate/src/convert.rs @@ -335,7 +335,7 @@ fn map_field_if_present( } // This is needed to convert the old form's {{control}} syntax to the new [[control]] one. -fn apply_form_syntax_patch(matches: &mut Vec) { +fn apply_form_syntax_patch(matches: &mut [Yaml]) { matches.iter_mut().for_each(|m| { if let Yaml::Hash(fields) = m { if let Some(Yaml::String(form_option)) = fields.get_mut(&Yaml::String("form".to_string())) {