From 04ce64e9b6c2d5827355f11bf0721297003aa739 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 20 Dec 2020 22:42:29 -0500 Subject: [PATCH] Adding to clippy --- .drone.yml | 2 +- tests/integration_test.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index f661f82e..9af3819f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ steps: - name: cargo clippy image: ekidd/rust-musl-builder:1.47.0 commands: - - cargo clippy + - cargo clippy --all-targets --all-features -- -D warnings - name: check documentation build image: ekidd/rust-musl-builder:1.47.0 diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 75753d28..c8986454 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -60,10 +60,10 @@ fn create_context() -> LemmyContext { let activity_queue = create_activity_queue(); let chat_server = ChatServer::startup( pool.clone(), - rate_limiter.clone(), + rate_limiter, |c, i, o, d| Box::pin(match_websocket_operation(c, i, o, d)), Client::default(), - activity_queue.clone(), + activity_queue, ) .start(); LemmyContext::create( @@ -95,7 +95,7 @@ fn create_user(conn: &PgConnection, name: &str) -> User_ { lang: "browser".into(), show_avatars: true, send_notifications_to_email: false, - actor_id: Some(format!("http://localhost:8536/u/{}", name).to_string()), + actor_id: Some(format!("http://localhost:8536/u/{}", name)), bio: None, local: true, private_key: Some(user_keypair.private_key), -- 2.44.1