Clippy tweaks to new build script
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2023-06-30 16:11:21 +02:00
1 parent 189dc89e67
commit 653de5c919
1 file changed
+1 -4
+1 -4
View File
@@ -110,8 +110,7 @@ fn write_scripts(path: &str, output_file: &mut std::fs::File) {
})
.collect::<Vec<_>>();
for script_impl in script_impls {
match script_impl.self_ty.as_ref() {
syn::Type::Path(p) => {
if let syn::Type::Path(p) = script_impl.self_ty.as_ref() {
let ident = p.path.segments[0].ident.to_string();
writeln!(
output_file,
@@ -120,8 +119,6 @@ fn write_scripts(path: &str, output_file: &mut std::fs::File) {
)
.unwrap();
}
_ => {}
}
}
}
}