aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoey Sacchini <joey@sacchini.net>2020-10-09 23:01:08 -0400
committerJoey Sacchini <joey@sacchini.net>2020-10-09 23:01:08 -0400
commitf30d7f9f8365f81759075b43c43c92329de278ca (patch)
treef01e895fbf9e1c14db9cc1b4b4d9038bbfc9f614 /src
parentf80b0ff22a64b3e09454b365df6f461e0849408b (diff)
downloadmcproto-rs-f30d7f9f8365f81759075b43c43c92329de278ca.tar.gz
mcproto-rs-f30d7f9f8365f81759075b43c43c92329de278ca.tar.bz2
mcproto-rs-f30d7f9f8365f81759075b43c43c92329de278ca.zip
visit_str not visit_string
Diffstat (limited to 'src')
-rw-r--r--src/chat.rs4
1 files changed, 2 insertions, 2 deletions
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<E>(self, value: String) -> Result<Self::Value, E> where E: de::Error {
+ fn visit_str<E>(self, value: &str) -> Result<Self::Value, E> where E: de::Error {
Ok(Chat::Text(TextComponent {
base: BaseComponent::default(),
- text: value,
+ text: value.to_owned(),
}))
}