remove unused imports

This commit is contained in:
al8n 2022-12-21 15:49:34 +13:00
parent 7983add1ca
commit 4dd59abf15
3 changed files with 20 additions and 1 deletions

12
examples/Cargo.lock generated
View File

@ -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",

View File

@ -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<bool> {
let result = unsafe { CStr::from_ptr(waku_sys::waku_discv5_start()) }

View File

@ -1,8 +1,8 @@
//! Waku node implementation
mod config;
mod discv5;
mod discovery;
mod discv5;
mod filter;
mod lightpush;
mod management;