aboutsummaryrefslogtreecommitdiff
path: root/client-native-lib
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-12 11:32:39 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-12 11:32:39 +0200
commit1a8499e3e9000b367ee0596b81eed1bbe3682a9a (patch)
tree3664d37c55dc0e88c76eea3f3f3e25a58986fbcd /client-native-lib
parent4f926ff6baff0621e3fa0cb5873b082f9ef963b2 (diff)
downloadkeks-meet-1a8499e3e9000b367ee0596b81eed1bbe3682a9a.tar
keks-meet-1a8499e3e9000b367ee0596b81eed1bbe3682a9a.tar.bz2
keks-meet-1a8499e3e9000b367ee0596b81eed1bbe3682a9a.tar.zst
update rust, deps and do clippy
Diffstat (limited to 'client-native-lib')
-rw-r--r--client-native-lib/Cargo.toml12
-rw-r--r--client-native-lib/src/instance.rs2
2 files changed, 7 insertions, 7 deletions
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;