mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
WIP
This commit is contained in:
@@ -517,7 +517,7 @@ fn generate_register_node_impl(parsed: &ParsedNodeFn, field_names: &[&Ident], st
|
||||
}
|
||||
|
||||
let mut constructors = Vec::new();
|
||||
let unit = parse_quote!(gcore::Context);
|
||||
let unit = parse_quote!(gcore::context::Context);
|
||||
let parameter_types: Vec<_> = parsed
|
||||
.fields
|
||||
.iter()
|
||||
|
||||
@@ -643,7 +643,7 @@ impl ParsedNodeFn {
|
||||
}));
|
||||
self.input.ty = parse_quote!(#ident);
|
||||
if self.input.implementations.is_empty() {
|
||||
self.input.implementations.push(parse_quote!(gcore::Context));
|
||||
self.input.implementations.push(parse_quote!(gcore::context::Context));
|
||||
}
|
||||
}
|
||||
if self.input.pat_ident.ident == "_" {
|
||||
|
||||
Reference in New Issue
Block a user