Skip to content

Commit 7240d7c

Browse files
committed
[rust-axum] don't include quotes in output string from Display trait for string types
1 parent 2b23399 commit 7240d7c

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
@@ -389,7 +389,7 @@ impl std::convert::From<{{{dataType}}}> for {{{classname}}} {
389389
390390
impl std::fmt::Display for {{{classname}}} {
391391
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
392-
write!(f, "{:?}", self.0)
392+
write!(f, "{}", self.0)
393393
}
394394
}
395395

0 commit comments

Comments
 (0)