Adding to clippy

pull/1335/head
Dessalines 2020-12-20 22:42:29 -05:00
parent 2aa8de87b2
commit 04ce64e9b6
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ steps:
- name: cargo clippy - name: cargo clippy
image: ekidd/rust-musl-builder:1.47.0 image: ekidd/rust-musl-builder:1.47.0
commands: commands:
- cargo clippy - cargo clippy --all-targets --all-features -- -D warnings
- name: check documentation build - name: check documentation build
image: ekidd/rust-musl-builder:1.47.0 image: ekidd/rust-musl-builder:1.47.0

View File

@ -60,10 +60,10 @@ fn create_context() -> LemmyContext {
let activity_queue = create_activity_queue(); let activity_queue = create_activity_queue();
let chat_server = ChatServer::startup( let chat_server = ChatServer::startup(
pool.clone(), pool.clone(),
rate_limiter.clone(), rate_limiter,
|c, i, o, d| Box::pin(match_websocket_operation(c, i, o, d)), |c, i, o, d| Box::pin(match_websocket_operation(c, i, o, d)),
Client::default(), Client::default(),
activity_queue.clone(), activity_queue,
) )
.start(); .start();
LemmyContext::create( LemmyContext::create(
@ -95,7 +95,7 @@ fn create_user(conn: &PgConnection, name: &str) -> User_ {
lang: "browser".into(), lang: "browser".into(),
show_avatars: true, show_avatars: true,
send_notifications_to_email: false, 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, bio: None,
local: true, local: true,
private_key: Some(user_keypair.private_key), private_key: Some(user_keypair.private_key),