section-config: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-06-29 10:11:28 +02:00
parent 7b1aad429f
commit 064791e565

View File

@ -899,11 +899,14 @@ pub fn dump_section_config(config: &SectionConfig) -> String {
};
if plugin_count > 1 {
use std::fmt::Write as _;
let description = wrap_text("", "", properties.description(), 80);
res.push_str(&format!(
let _ = write!(
res,
"\n**Section type** \'``{}``\': {}\n\n",
name, description
));
);
}
res.push_str(&dump_properties(