Clippy tweaks to new build script
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
189dc89e67
commit
653de5c919
|
@ -110,17 +110,14 @@ fn write_scripts(path: &str, output_file: &mut std::fs::File) {
|
||||||
})
|
})
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
for script_impl in script_impls {
|
for script_impl in script_impls {
|
||||||
match script_impl.self_ty.as_ref() {
|
if let syn::Type::Path(p) = script_impl.self_ty.as_ref() {
|
||||||
syn::Type::Path(p) => {
|
let ident = p.path.segments[0].ident.to_string();
|
||||||
let ident = p.path.segments[0].ident.to_string();
|
writeln!(
|
||||||
writeln!(
|
output_file,
|
||||||
output_file,
|
" crate::{}::{}::{},",
|
||||||
" crate::{}::{}::{},",
|
path, file, ident
|
||||||
path, file, ident
|
)
|
||||||
)
|
.unwrap();
|
||||||
.unwrap();
|
|
||||||
}
|
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue