diff --git a/parsers/src/data_forms/validate.rs b/parsers/src/data_forms/validate.rs index cfd716e8..58e16318 100644 --- a/parsers/src/data_forms/validate.rs +++ b/parsers/src/data_forms/validate.rs @@ -391,10 +391,10 @@ impl Display for Datatype { Datatype::Short => "xs:short", Datatype::String => "xs:string", Datatype::Time => "xs:time", - Datatype::UserDefined(value) => &format!("x:{value}"), - Datatype::Other { prefix, value } => &format!("{prefix}:{value}"), + Datatype::UserDefined(value) => return write!(f, "x:{value}"), + Datatype::Other { prefix, value } => return write!(f, "{prefix}:{value}"), }; - write!(f, "{value}") + f.write_str(value) } }