section-config: silence clippy
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 <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
77ac0bd5fe
commit
6eb638c806
@ -584,7 +584,7 @@ impl SectionConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn default_format_section_content(
|
fn default_format_section_content(
|
||||||
type_name: &str,
|
_type_name: &str,
|
||||||
section_id: &str,
|
section_id: &str,
|
||||||
key: &str,
|
key: &str,
|
||||||
value: &Value,
|
value: &Value,
|
||||||
@ -592,7 +592,7 @@ impl SectionConfig {
|
|||||||
if let Value::Array(array) = value {
|
if let Value::Array(array) = value {
|
||||||
let mut list = String::new();
|
let mut list = String::new();
|
||||||
for item in array {
|
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() {
|
if !line.is_empty() {
|
||||||
list.push_str(&line);
|
list.push_str(&line);
|
||||||
}
|
}
|
||||||
@ -698,7 +698,7 @@ impl SectionConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn systemd_format_section_content(
|
fn systemd_format_section_content(
|
||||||
type_name: &str,
|
_type_name: &str,
|
||||||
section_id: &str,
|
section_id: &str,
|
||||||
key: &str,
|
key: &str,
|
||||||
value: &Value,
|
value: &Value,
|
||||||
@ -706,7 +706,7 @@ impl SectionConfig {
|
|||||||
if let Value::Array(array) = value {
|
if let Value::Array(array) = value {
|
||||||
let mut list = String::new();
|
let mut list = String::new();
|
||||||
for item in array {
|
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() {
|
if !line.is_empty() {
|
||||||
list.push_str(&line);
|
list.push_str(&line);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user