diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index e7287233..013b1d90 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -165,10 +165,8 @@ jobs: run: cargo install clippy-sarif sarif-fmt || true - name: Run rust-clippy - run: cargo clippy - --all-features - --tests - --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt + run: cargo clippy --all-features --workspace --examples --tests --message-format=json -- -D warnings + | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt continue-on-error: true - name: Upload analysis results to GitHub diff --git a/crates/parser-msgpack/src/value/mod.rs b/crates/parser-msgpack/src/value/mod.rs index 4cfa4297..f163dabd 100644 --- a/crates/parser-msgpack/src/value/mod.rs +++ b/crates/parser-msgpack/src/value/mod.rs @@ -57,12 +57,12 @@ mod tests { to_value(&data, event).unwrap().as_bytes().unwrap().clone() } fn from_bytes_event(data: impl Serialize) -> T { - println!("{:?}", &to_vec_named(&data).unwrap()); + println!("{:?}", to_vec_named(&data).unwrap()); println!("{:?}", std::any::type_name::()); from_value::(&Value::Bytes(to_vec_named(&data).unwrap().into()), true).unwrap() } fn from_bytes_ack(data: impl Serialize) -> T { - println!("{:?}", &to_vec_named(&data).unwrap()); + println!("{:?}", to_vec_named(&data).unwrap()); println!("{:?}", std::any::type_name::()); from_value::(&Value::Bytes(to_vec_named(&data).unwrap().into()), false).unwrap() } diff --git a/crates/socketioxide-postgres/src/lib.rs b/crates/socketioxide-postgres/src/lib.rs index b10eb7cd..8183558a 100644 --- a/crates/socketioxide-postgres/src/lib.rs +++ b/crates/socketioxide-postgres/src/lib.rs @@ -1109,7 +1109,7 @@ impl CustomPostgresAdapter { fn get_response_chan(&self, uid: Uid) -> String { let chan = format!( "response-{}{}{}", - &self.config.prefix, + self.config.prefix, self.local.path(), uid ); diff --git a/crates/socketioxide-redis/src/lib.rs b/crates/socketioxide-redis/src/lib.rs index a1747672..4d5e6da9 100644 --- a/crates/socketioxide-redis/src/lib.rs +++ b/crates/socketioxide-redis/src/lib.rs @@ -408,7 +408,7 @@ impl CoreAdapter for CustomRedisAdapter { let specific_stream = self.subscribe(self.get_req_chan(Some(self.uid))).await?; let response_chan = format!( "{}-response#{}#{}#", - &self.config.prefix, + self.config.prefix, self.local.path(), self.uid ); @@ -426,7 +426,7 @@ impl CoreAdapter for CustomRedisAdapter { async fn close(&self) -> Result<(), Self::Error> { let response_chan = format!( "{}-response#{}#{}#", - &self.config.prefix, + self.config.prefix, self.local.path(), self.uid );