Skip to content

Commit 380da2c

Browse files
fix: clippy
1 parent 4f4178c commit 380da2c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • crates/treeedbgen-souffle/src

crates/treeedbgen-souffle/src/gen.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ fn node_with_fields(
8383
}
8484

8585
// TODO(#18): Configurable field prefix/suffix
86-
let field_relation_name =
87-
format!("{}{}_{}_f", config.relation_prefix, &node.ty, field_name);
86+
let field_relation_name = format!("{}{}_{}_f", config.relation_prefix, node.ty, field_name);
8887
writeln!(
8988
w,
9089
".decl {}(x: {}{}, y: {})",
@@ -108,7 +107,7 @@ fn node_with_fields(
108107
let child_type_name =
109108
format!("{}{}", config.type_prefix, child.ty.to_upper_camel_case());
110109
let child_relation_name =
111-
format!("{}{}_{}_c", config.relation_prefix, &node.ty, child.ty);
110+
format!("{}{}_{}_c", config.relation_prefix, node.ty, child.ty);
112111
writeln!(
113112
w,
114113
".decl {}(x: {}{}, y: {})",

0 commit comments

Comments
 (0)