From 0ac02488286fbbe82994b1d33b6315415bf69cfb Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Mon, 30 Oct 2023 14:36:29 +0200 Subject: [PATCH] refactor(clippy): fix clippy warnings from new Rust toolchain --- src/dx/parse_token.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(), }) }