Skip to content

Commit 067f688

Browse files
committed
Fix compilation errors
1 parent c484ba9 commit 067f688

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/mdns.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// jkcoxson
22

33
use crate::devices::SharedDevices;
4-
use log::info;
4+
use log::{info, warn};
55
use std::net::IpAddr;
66
use std::sync::Arc;
77

@@ -25,8 +25,6 @@ const SERVICE_PROTOCOL: &str = "tcp";
2525

2626
#[cfg(feature = "zeroconf")]
2727
pub async fn discover(data: Arc<Mutex<SharedDevices>>) {
28-
use log::warn;
29-
3028
let service_name = format!("_{}._{}.local", SERVICE_NAME, SERVICE_PROTOCOL);
3129
println!("Starting mDNS discovery for {} with zeroconf", service_name);
3230

@@ -110,7 +108,7 @@ pub async fn discover(data: Arc<Mutex<SharedDevices>>) {
110108

111109
if let Err(e) = lock
112110
.add_network_device(
113-
udid,
111+
udid.clone(),
114112
addr,
115113
service_name.clone(),
116114
"Network".to_string(),

0 commit comments

Comments
 (0)