From 011a917f5076e2c4cfa912f0f5208c198048e6c1 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Sun, 1 Sep 2024 10:22:21 +0800 Subject: [PATCH] minor changes --- src/async_session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/async_session.rs b/src/async_session.rs index 85dfe6b..e391467 100644 --- a/src/async_session.rs +++ b/src/async_session.rs @@ -88,7 +88,7 @@ impl AsyncRead for AsyncSession { Err(e) => { self.read_state = ReadState::Waiting(Some(task)); use std::io::{Error, ErrorKind}; - return Poll::Ready(Err(Error::new(ErrorKind::Other, format!("lock task fail: {:?}", e)))); + return Poll::Ready(Err(Error::new(ErrorKind::Other, format!("Lock task failed: {}", e)))); } }; self.read_state = match Pin::new(&mut *task_guard).poll(cx) {