From 4dd59abf150a303482cbd8124192f87c7b2744e1 Mon Sep 17 00:00:00 2001 From: al8n Date: Wed, 21 Dec 2022 15:49:34 +1300 Subject: [PATCH] remove unused imports --- examples/Cargo.lock | 12 ++++++++++++ waku-bindings/src/node/discv5.rs | 7 +++++++ waku-bindings/src/node/mod.rs | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/examples/Cargo.lock b/examples/Cargo.lock index fea9e71..e326045 100644 --- a/examples/Cargo.lock +++ b/examples/Cargo.lock @@ -964,6 +964,17 @@ version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +[[package]] +name = "smart-default" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "133659a15339456eeeb07572eb02a91c91e9815e9cbc89566944d2c8d3efdbf6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sscanf" version = "0.3.1" @@ -1203,6 +1214,7 @@ dependencies = [ "secp256k1", "serde", "serde_json", + "smart-default", "sscanf", "url", "waku-sys", diff --git a/waku-bindings/src/node/discv5.rs b/waku-bindings/src/node/discv5.rs index 79f9c26..3b2a3f6 100644 --- a/waku-bindings/src/node/discv5.rs +++ b/waku-bindings/src/node/discv5.rs @@ -1,3 +1,10 @@ +// std +use std::ffi::CStr; + +// crates +use crate::general::JsonResponse; +use crate::Result; + /// Starts the DiscoveryV5 service to discover and connect to new peers pub fn waku_discv5_start() -> Result { let result = unsafe { CStr::from_ptr(waku_sys::waku_discv5_start()) } diff --git a/waku-bindings/src/node/mod.rs b/waku-bindings/src/node/mod.rs index ca26251..3559a6f 100644 --- a/waku-bindings/src/node/mod.rs +++ b/waku-bindings/src/node/mod.rs @@ -1,8 +1,8 @@ //! Waku node implementation mod config; -mod discv5; mod discovery; +mod discv5; mod filter; mod lightpush; mod management;