From 5c92bf8049793e52f4c6cc3bad9714f710f9f365 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Wed, 25 Nov 2020 11:41:56 -0300 Subject: [PATCH] fix clippy issues --- Cargo.lock | 1 + jormungandr/src/notifier/mod.rs | 1 - jormungandr/src/rest/v1/mod.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dcb91d2c4a..095ef5e647 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2310,6 +2310,7 @@ dependencies = [ "thiserror", "tokio 0.2.22", "tonic", + "tungstenite", "url", "yaml-rust", ] diff --git a/jormungandr/src/notifier/mod.rs b/jormungandr/src/notifier/mod.rs index 1a231ee6b0..5375b3f3fc 100644 --- a/jormungandr/src/notifier/mod.rs +++ b/jormungandr/src/notifier/mod.rs @@ -4,7 +4,6 @@ use crate::utils::task::TokioServiceInfo; use chain_impl_mockchain::header::HeaderId; use futures::{select, SinkExt, StreamExt}; use jormungandr_lib::interfaces::notifier::JsonMessage; -use slog::Logger; use std::marker::PhantomData; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; diff --git a/jormungandr/src/rest/v1/mod.rs b/jormungandr/src/rest/v1/mod.rs index 9a415a7086..eeb59017ab 100644 --- a/jormungandr/src/rest/v1/mod.rs +++ b/jormungandr/src/rest/v1/mod.rs @@ -30,7 +30,7 @@ pub fn filter( let logs = warp::path!("logs") .and(warp::get()) - .and(with_context) + .and(with_context.clone()) .and_then(handlers::get_fragments_logs) .boxed();