From 058de21979a82657aa49d8a3ade44353b44050e6 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Fri, 16 Aug 2024 19:41:58 +0200 Subject: [PATCH] feat: Implement ToStatic for String --- merde_json/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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;