BlueGit

timfa posprint

Remove unused Instant import in network discovery.

Co-authored-by: Cursor <cursoragent@cursor.com>

timfa Tim Falken · pushed by timfa

Authored 2026-07-28 · 3 months ago

Hash
24bd798caa2e2d1d1acf695db0340844ff935661
Parent
e0a5b9ac
1 file changed +1 −2
src/print/network.rs +1 −2
@@ -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};
4use std::net::{IpAddr, Ipv4Addr, SocketAddr, TcpStream, UdpSocket};
4use std::net::{IpAddr, Ipv4Addr, SocketAddr, TcpStream, UdpSocket};
5use std::sync::mpsc;
5use std::sync::mpsc;
6use std::thread;
6use std::thread;
7use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
7use std::time::{Duration, SystemTime, UNIX_EPOCH};
8
8
9use super::{PrintError, PrinterDevice, PrinterTarget, PrinterTransport};
9use 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}