]> Untitled Git - lemmy.git/commitdiff
Adding to clippy
authorDessalines <tyhou13@gmx.com>
Mon, 21 Dec 2020 03:42:29 +0000 (22:42 -0500)
committerDessalines <tyhou13@gmx.com>
Mon, 21 Dec 2020 03:42:29 +0000 (22:42 -0500)
.drone.yml
tests/integration_test.rs

index f661f82ede183831c673f6b4e128b09ea26677f8..9af3819f016f35f73641465b91abe970d3a7f024 100644 (file)
@@ -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
index 75753d28089bb0821c3768b1cefe54f854bcc608..c8986454405f07387bb989139e7365193cd382f3 100644 (file)
@@ -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),