Skip to content

Commit 82ada13

Browse files
committed
der: clarify: add option to disable e.g. end: OctetStringRef
1 parent 82bdc41 commit 82ada13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

der/src/writer/clarify.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,11 @@ impl Clarifier {
299299
}
300300
}
301301

302-
let type_name = strip_transparent_types(type_name);
303-
self.write_clarify_indent();
304-
self.write_clarify_type_str("end", type_name.as_ref());
302+
if self.print_types {
303+
let type_name = strip_transparent_types(type_name);
304+
self.write_clarify_indent();
305+
self.write_clarify_type_str("end", type_name.as_ref());
306+
}
305307
}
306308

307309
/// for better tag-length pretty-printing inline

0 commit comments

Comments
 (0)