relax and de-clutter let_underscore_must_use
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
100c6f572b
commit
23a9055199
9 changed files with 5 additions and 29 deletions
|
@ -71,7 +71,6 @@ fn handle_result(
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::unnecessary_wraps)]
|
||||
fn handle_result_403(
|
||||
_method: &Method, _uri: &Uri, result: &axum::response::Response,
|
||||
) -> Result<axum::response::Response, StatusCode> {
|
||||
|
|
|
@ -17,7 +17,6 @@ use crate::{layers, serve};
|
|||
|
||||
/// Main loop base
|
||||
#[tracing::instrument(skip_all)]
|
||||
#[allow(clippy::let_underscore_must_use)] // various of these are intended
|
||||
pub(crate) async fn run(server: Arc<Server>) -> Result<(), Error> {
|
||||
let app = layers::build(&server)?;
|
||||
|
||||
|
|
|
@ -54,7 +54,6 @@ pub(super) async fn serve(server: &Arc<Server>, app: Router, mut shutdown: broad
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
async fn accept(
|
||||
server: &Arc<Server>, listener: &UnixListener, tasks: &mut JoinSet<()>, mut app: MakeService,
|
||||
builder: server::conn::auto::Builder<TokioExecutor>, conn: (UnixStream, SocketAddr),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue