Use imports.set_defaults
@@ -99,10 +99,11 @@ fn analyze_property(
if !for_builder {
return None;
}
+ imports.set_defaults(prop_version, &None);
let type_str = used_rust_type(env, prop.typ, false);
if let Ok(ref s) = type_str {
if !s.contains("GString") {
- imports.add_used_type_with_version(s, prop_version);
+ imports.add_used_type(s);
}
}
