diff --git a/src/dx/parse_token.rs b/src/dx/parse_token.rs index 9cdbbc7b..469d2f60 100644 --- a/src/dx/parse_token.rs +++ b/src/dx/parse_token.rs @@ -27,9 +27,7 @@ impl Deserializer for CiboriumDeserializer { &self, bytes: &[u8], ) -> Result { - use crate::lib::core::ops::Deref; - - from_reader(bytes.deref()).map_err(|e| PubNubError::TokenDeserialization { + from_reader(bytes).map_err(|e| PubNubError::TokenDeserialization { details: e.to_string(), }) }