parent
189dc89e67
commit
653de5c919
gen_7_scripts
|
@ -110,17 +110,14 @@ 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) => {
|
||||
let ident = p.path.segments[0].ident.to_string();
|
||||
writeln!(
|
||||
output_file,
|
||||
" crate::{}::{}::{},",
|
||||
path, file, ident
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
_ => {}
|
||||
if let syn::Type::Path(p) = script_impl.self_ty.as_ref() {
|
||||
let ident = p.path.segments[0].ident.to_string();
|
||||
writeln!(
|
||||
output_file,
|
||||
" crate::{}::{}::{},",
|
||||
path, file, ident
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue