style: pedantic refactoring (#6771)

---------

Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
This commit is contained in:
danieleades
2025-08-17 15:51:04 +01:00
committed by GitHub
parent 6d717b20ae
commit 3760f29560
59 changed files with 391 additions and 421 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ fn gen_presets_hook(mut file: &File) -> SdResult<()> {
writeln!(
file,
r#"
r"
use crate::print;
pub fn get_preset_list<'a>() -> &'a [print::Preset] {{
@@ -57,7 +57,7 @@ pub fn get_preset_content(name: &str) -> &[u8] {{
_ => unreachable!(),
}}
}}
"#
"
)?;
Ok(())
}