Remove unused Instant import in network discovery.
Co-authored-by: Cursor <cursoragent@cursor.com>
@@ -4,7 +4,7 @@ use std::io::{self, Write};
4
4
use std::net::{IpAddr, Ipv4Addr, SocketAddr, TcpStream, UdpSocket};
5
5
use std::sync::mpsc;
6
6
use std::thread;
7
use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
7
use std::time::{Duration, SystemTime, UNIX_EPOCH};
8
8
9
9
use super::{PrintError, PrinterDevice, PrinterTarget, PrinterTransport};
10
10
@@ -461,7 +461,6 @@ mod tests {
461
461
462
462
#[test]
463
463
fn estimate_scan_budget_is_finite() {
464
let _ = Instant::now();
465
464
assert!(estimate_scan_budget(254) > Duration::from_millis(0));
466
465
}
467
466
}
@@ -4,7 +4,7 @@ use std::io::{self, Write};4
use std::net::{IpAddr, Ipv4Addr, SocketAddr, TcpStream, UdpSocket};
4
use std::net::{IpAddr, Ipv4Addr, SocketAddr, TcpStream, UdpSocket};
5
use std::sync::mpsc;
5
use std::sync::mpsc;
6
use std::thread;
6
use std::thread;
7
use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
7
use std::time::{Duration, SystemTime, UNIX_EPOCH};
8
8
9
use super::{PrintError, PrinterDevice, PrinterTarget, PrinterTransport};
9
use super::{PrintError, PrinterDevice, PrinterTarget, PrinterTransport};
10
10
@@ -461,7 +461,6 @@ mod tests {461
461
462
#[test]
462
#[test]
463
fn estimate_scan_budget_is_finite() {
463
fn estimate_scan_budget_is_finite() {
464
let _ = Instant::now();
465
assert!(estimate_scan_budget(254) > Duration::from_millis(0));
464
assert!(estimate_scan_budget(254) > Duration::from_millis(0));
466
}
465
}
467
}
466
}