From f910bac80470cd3d6d1c46146bf2682578639acc Mon Sep 17 00:00:00 2001 From: Daniel Sanchez Quiros Date: Mon, 17 Oct 2022 19:19:23 +0200 Subject: [PATCH] Clippy happy --- waku/src/node/lightpush.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/src/node/lightpush.rs b/waku/src/node/lightpush.rs index 6f24524..1b25e21 100644 --- a/waku/src/node/lightpush.rs +++ b/waku/src/node/lightpush.rs @@ -29,7 +29,7 @@ pub fn waku_lightpush_publish( ) .expect("CString should build properly from the serialized waku message") .into_raw(), - CString::new(pubsub_topic.to_string()) + CString::new(pubsub_topic) .expect("CString should build properly from pubsub topic") .into_raw(), CString::new(peer_id)