1 parent 4f4178c commit 380da2cCopy full SHA for 380da2c
1 file changed
crates/treeedbgen-souffle/src/gen.rs
@@ -83,8 +83,7 @@ fn node_with_fields(
83
}
84
85
// TODO(#18): Configurable field prefix/suffix
86
- let field_relation_name =
87
- format!("{}{}_{}_f", config.relation_prefix, &node.ty, field_name);
+ let field_relation_name = format!("{}{}_{}_f", config.relation_prefix, node.ty, field_name);
88
writeln!(
89
w,
90
".decl {}(x: {}{}, y: {})",
@@ -108,7 +107,7 @@ fn node_with_fields(
108
107
let child_type_name =
109
format!("{}{}", config.type_prefix, child.ty.to_upper_camel_case());
110
let child_relation_name =
111
- format!("{}{}_{}_c", config.relation_prefix, &node.ty, child.ty);
+ format!("{}{}_{}_c", config.relation_prefix, node.ty, child.ty);
112
113
114
0 commit comments