Skip to content

An open-source cross-platform alternative to AirDrop

chore: no more warnings in app/rust/

Tien Do Namd108a9c0dec8
diff --git a/app/rust/Cargo.toml b/app/rust/Cargo.toml
index a2b00d68..0e71d7c8 100644
--- a/app/rust/Cargo.toml
+++ b/app/rust/Cargo.toml
@@ -6,6 +6,9 @@ edition = "2024"
[lib]
crate-type = ["cdylib", "staticlib"]
+[lints.rust]
+unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }
+
[dependencies]
anyhow = "1.0"
bytes = "1.9"
diff --git a/app/rust/src/api/webrtc.rs b/app/rust/src/api/webrtc.rs
index e72f2718..7d77b9db 100644
--- a/app/rust/src/api/webrtc.rs
+++ b/app/rust/src/api/webrtc.rs
@@ -13,9 +13,7 @@ pub use localsend::webrtc::webrtc::{
};
use std::collections::HashSet;
use std::sync::Arc;
-use std::time::Duration;
use tokio::sync::{Mutex, mpsc, oneshot};
-use tokio::time;
use uuid::Uuid;
pub struct ProposingClientInfo {