Skip to content

Commit c10c160

Browse files
committed
[rust-axum] don't include quotes in output string from Display trait for string types
1 parent 40b9d69 commit c10c160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/rust-axum/models.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ impl std::convert::From<{{{dataType}}}> for {{{classname}}} {
630630
631631
impl std::fmt::Display for {{{classname}}} {
632632
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
633-
write!(f, "{:?}", self.0)
633+
write!(f, "{}", self.0)
634634
}
635635
}
636636

0 commit comments

Comments
 (0)