From f30d7f9f8365f81759075b43c43c92329de278ca Mon Sep 17 00:00:00 2001 From: Joey Sacchini Date: Fri, 9 Oct 2020 23:01:08 -0400 Subject: visit_str not visit_string --- src/chat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/chat.rs b/src/chat.rs index 3a53be8..198e231 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -903,10 +903,10 @@ impl<'de> Deserialize<'de> for Chat { self.visit_string(value.to_string()) } - fn visit_string(self, value: String) -> Result where E: de::Error { + fn visit_str(self, value: &str) -> Result where E: de::Error { Ok(Chat::Text(TextComponent { base: BaseComponent::default(), - text: value, + text: value.to_owned(), })) } -- cgit