Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions crates/parser-msgpack/src/value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ mod tests {
to_value(&data, event).unwrap().as_bytes().unwrap().clone()
}
fn from_bytes_event<T: DeserializeOwned>(data: impl Serialize) -> T {
println!("{:?}", &to_vec_named(&data).unwrap());
println!("{:?}", to_vec_named(&data).unwrap());
println!("{:?}", std::any::type_name::<T>());
from_value::<T>(&Value::Bytes(to_vec_named(&data).unwrap().into()), true).unwrap()
}
fn from_bytes_ack<T: DeserializeOwned>(data: impl Serialize) -> T {
println!("{:?}", &to_vec_named(&data).unwrap());
println!("{:?}", to_vec_named(&data).unwrap());
println!("{:?}", std::any::type_name::<T>());
from_value::<T>(&Value::Bytes(to_vec_named(&data).unwrap().into()), false).unwrap()
}
Expand Down
2 changes: 1 addition & 1 deletion crates/socketioxide-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ impl<E: SocketEmitter, D: Driver> CustomPostgresAdapter<E, D> {
fn get_response_chan(&self, uid: Uid) -> String {
let chan = format!(
"response-{}{}{}",
&self.config.prefix,
self.config.prefix,
self.local.path(),
uid
);
Expand Down
4 changes: 2 additions & 2 deletions crates/socketioxide-redis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ impl<E: SocketEmitter, R: Driver> CoreAdapter<E> for CustomRedisAdapter<E, R> {
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
);
Expand All @@ -426,7 +426,7 @@ impl<E: SocketEmitter, R: Driver> CoreAdapter<E> for CustomRedisAdapter<E, R> {
async fn close(&self) -> Result<(), Self::Error> {
let response_chan = format!(
"{}-response#{}#{}#",
&self.config.prefix,
self.config.prefix,
self.local.path(),
self.uid
);
Expand Down