Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Sep 1, 2024
1 parent dcd5639 commit 011a917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 011a917

Please sign in to comment.