From 559e34f9c59da9c9b3e87bdac832fcfee038f31f Mon Sep 17 00:00:00 2001 From: Charlie Little Date: Thu, 5 Sep 2024 14:26:39 -0500 Subject: [PATCH] Fail clippy to test token --- src/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.rs b/src/connection.rs index 90f54c5..5a5c0ba 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -104,7 +104,7 @@ impl Drop for Connection { match self.end() { Ok(_) => (), Err(Error::IO(err)) if err.kind() == std::io::ErrorKind::NotConnected => (), - Err(e) => panic!("Error closing connection: {:?}", e), + Err(e) => Err(e).unwrap(), } } }