Skip to content

Commit 1c10dd8

Browse files
committed
wip
1 parent 6cd7cae commit 1c10dd8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

rust/catalyst-signed-doc-spec/src/cddl_definitions.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,7 @@ impl CddlDef {
3030
&self,
3131
cddl_type: &CddlType,
3232
) -> String {
33-
self.requires
34-
.iter()
35-
.enumerate()
36-
// replace `requires[i]` entries with the proper CDDL type names from the `requires`
37-
// list
38-
.fold(format!("{cddl_type}={}\n", self.def), |spec, (i, req)| {
39-
spec.replace(&format!("requires[{i}]"), &req.0)
40-
})
33+
format!("{cddl_type}={}\n", self.def)
4134
}
4235
}
4336

0 commit comments

Comments
 (0)