X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/8037fb2d66e52fa65333e4b176c430118f59e89c..ff846bc6784f1245bc2b1c83651fea3b673c563a:/client/src/transports/stream_codec.rs diff --git a/client/src/transports/stream_codec.rs b/client/src/transports/stream_codec.rs index 6f77306f..e46233cb 100644 --- a/client/src/transports/stream_codec.rs +++ b/client/src/transports/stream_codec.rs @@ -41,7 +41,7 @@ impl Decoder for StreamCodec { match str::from_utf8(line.as_ref()) { Ok(s) => Ok(Some(s.to_string())), - Err(_) => Err(io::Error::new(io::ErrorKind::Other, "invalid UTF-8")), + Err(_) => Err(io::Error::other("invalid UTF-8")), } } else { Ok(None)