Skip to content

Commit

Permalink
Fix a new lint with Rust 1.74.0
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Nov 16, 2023
1 parent 63f6385 commit 65f367e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libtiny_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ async fn main_loop(
tokio::task::spawn_local(async move {
let mut rcv_msg = ReceiverStream::new(rcv_msg);
while let Some(msg) = rcv_msg.next().await {
if let Err(io_err) = write_half.write_all(msg.as_str().as_bytes()).await {
if let Err(io_err) = write_half.write_all(msg.as_bytes()).await {
debug!("IO error when writing: {:?}", io_err);
snd_ev_clone.send(Event::IoErr(io_err)).await.unwrap();
return;
Expand Down

0 comments on commit 65f367e

Please sign in to comment.