From 1a8499e3e9000b367ee0596b81eed1bbe3682a9a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 12 Jul 2024 11:32:39 +0200 Subject: update rust, deps and do clippy --- client-native-lib/Cargo.toml | 12 ++++++------ client-native-lib/src/instance.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client-native-lib') diff --git a/client-native-lib/Cargo.toml b/client-native-lib/Cargo.toml index 152ae2a..2c5a4d6 100644 --- a/client-native-lib/Cargo.toml +++ b/client-native-lib/Cargo.toml @@ -4,14 +4,14 @@ version = "0.3.0" edition = "2021" [dependencies] -tokio = { version = "1.36", features = ["full"] } +tokio = { version = "1.38", features = ["full"] } futures-util = "0.3.30" -webrtc = "0.10.1" +webrtc = "0.11.0" tokio-tungstenite = { version = "*", features = ["rustls-tls"] } -url = "2.5.0" +url = "2.5.2" -serde = { version = "1.0.197", features = ["derive"] } +serde = { version = "1.0.204", features = ["derive"] } serde_json = "*" log = "0.4" @@ -22,5 +22,5 @@ hex = "0.4.3" sha2 = "0.10.8" rand = "0.8.5" rand_chacha = "0.3.1" -base64 = "0.22.0" -bytes = "1.5.0" +base64 = "0.22.1" +bytes = "1.6.0" diff --git a/client-native-lib/src/instance.rs b/client-native-lib/src/instance.rs index 476d9bd..d10ccbf 100644 --- a/client-native-lib/src/instance.rs +++ b/client-native-lib/src/instance.rs @@ -182,7 +182,7 @@ impl Instance { .insert(res.info().id, res); } pub async fn remove_local_resource(&self, id: String) -> bool { - if let Some(_) = self.local_resources.write().await.remove(&id) { + if self.local_resources.write().await.remove(&id).is_some() { for (_pid, peer) in self.peers.read().await.iter() { peer.send_relay(RelayMessage::ProvideStop { id: id.clone() }) .await; -- cgit v1.2.3-70-g09d2