diff --git a/merde_json/src/lib.rs b/merde_json/src/lib.rs index 683422f..4d3c91f 100644 --- a/merde_json/src/lib.rs +++ b/merde_json/src/lib.rs @@ -958,6 +958,14 @@ impl ToStatic for bool { } } +impl ToStatic for String { + type Output = String; + + fn to_static(&self) -> Self::Output { + self.clone() + } +} + impl ToStatic for Option { type Output = Option;