[dep-upgrade-202402] slightly more explicit error management

This commit is contained in:
Alex Auvolat
2024-02-07 14:53:13 +01:00
parent a31d1bd496
commit 53746b59e5
2 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -1,3 +1,4 @@
use std::convert::Infallible;
use std::fs::{self, Permissions};
use std::os::unix::fs::PermissionsExt;
use std::sync::Arc;
@@ -194,7 +195,8 @@ impl<A: ApiHandler> ApiServer<A> {
} else {
info!("Response: error {}, {}", e.http_status_code(), e);
}
Ok(http_error.map(|body| BoxBody::new(body.map_err(|_| unreachable!()))))
Ok(http_error
.map(|body| BoxBody::new(body.map_err(|_: Infallible| unreachable!()))))
}
}
}