From 6eb638c806ab1bbccd5a1368d2a2e1b1826e8384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 13 Dec 2022 14:37:55 +0100 Subject: [PATCH] section-config: silence clippy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit these two functions don't actually use the `type_name` parameter, but the interface including custom formatters require it. Signed-off-by: Fabian Grünbichler --- proxmox-section-config/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxmox-section-config/src/lib.rs b/proxmox-section-config/src/lib.rs index 2c67941a..a86692a8 100644 --- a/proxmox-section-config/src/lib.rs +++ b/proxmox-section-config/src/lib.rs @@ -584,7 +584,7 @@ impl SectionConfig { } fn default_format_section_content( - type_name: &str, + _type_name: &str, section_id: &str, key: &str, value: &Value, @@ -592,7 +592,7 @@ impl SectionConfig { if let Value::Array(array) = value { let mut list = String::new(); for item in array { - let line = Self::default_format_section_content(type_name, section_id, key, item)?; + let line = Self::default_format_section_content(_type_name, section_id, key, item)?; if !line.is_empty() { list.push_str(&line); } @@ -698,7 +698,7 @@ impl SectionConfig { } fn systemd_format_section_content( - type_name: &str, + _type_name: &str, section_id: &str, key: &str, value: &Value, @@ -706,7 +706,7 @@ impl SectionConfig { if let Value::Array(array) = value { let mut list = String::new(); for item in array { - let line = Self::systemd_format_section_content(type_name, section_id, key, item)?; + let line = Self::systemd_format_section_content(_type_name, section_id, key, item)?; if !line.is_empty() { list.push_str(&line); }