diff --git a/src/generator.rs b/src/generator.rs index 2c9ac1e..8fa5ff7 100644 --- a/src/generator.rs +++ b/src/generator.rs @@ -174,10 +174,7 @@ This code is auto generated using endcap_sl_software_ri_generator. files .into_iter() .map(|(path, tokens)| -> Result<(PathBuf, syn::File), _> { - let tokens = if path - .file_name() - .is_some_and(|file| file == "mod.rs") - { + let tokens = if path.file_name().is_some_and(|file| file == "mod.rs") { quote! { #![doc = #build_metadata]