Fix utils.rs in io::Error::other

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2025-05-16 21:39:14 +10:00 committed by GitHub
parent af85c45a4b
commit cf74c032f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,8 +100,7 @@ where
async fn inner<T: Send + 'static>(handle: task::JoinHandle<io::Result<T>>) -> io::Result<T> {
match handle.await {
Ok(res) => res,
Err(err) => Err(io::Error::new(
io::ErrorKind::Other,
Err(err) => Err(io::Error::other(
format!("background task failed: {err}"),
)),
}