mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-15 02:08:54 +00:00
section-config: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
7b1aad429f
commit
064791e565
@ -899,11 +899,14 @@ pub fn dump_section_config(config: &SectionConfig) -> String {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if plugin_count > 1 {
|
if plugin_count > 1 {
|
||||||
|
use std::fmt::Write as _;
|
||||||
|
|
||||||
let description = wrap_text("", "", properties.description(), 80);
|
let description = wrap_text("", "", properties.description(), 80);
|
||||||
res.push_str(&format!(
|
let _ = write!(
|
||||||
|
res,
|
||||||
"\n**Section type** \'``{}``\': {}\n\n",
|
"\n**Section type** \'``{}``\': {}\n\n",
|
||||||
name, description
|
name, description
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
res.push_str(&dump_properties(
|
res.push_str(&dump_properties(
|
||||||
|
Loading…
Reference in New Issue
Block a user