From feaf9d59a9f5633336d454811e95ebbff4991400 Mon Sep 17 00:00:00 2001 From: etherhood Date: Mon, 9 Sep 2024 21:37:06 +0400 Subject: [PATCH] fix: warning related to use of into() --- portalnet/src/overlay/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portalnet/src/overlay/protocol.rs b/portalnet/src/overlay/protocol.rs index ddabec05f2..6ffbcf3efe 100644 --- a/portalnet/src/overlay/protocol.rs +++ b/portalnet/src/overlay/protocol.rs @@ -527,7 +527,7 @@ where let content_items = content_keys .into_iter() .map(|key| match self.store.read().get(&key) { - Ok(Some(content)) => Ok((key.to_bytes().into(), content.clone())), + Ok(Some(content)) => Ok((key.to_bytes(), content.clone())), _ => Err(OverlayRequestError::ContentNotFound { message: format!("Content key not found in local store: {key:02X?}"), utp: false,