refactor(lints): add missing lints to ioxd_querier

Adds the standard lints to ioxd_querier and fixes any lint failures.

Note this doesn't include the normal "document things" lint, because
there's a load of missing docs
pull/24376/head
Dom Dwyer 2023-05-22 14:10:22 +02:00
parent e33c17c6f7
commit 45ddeaa25e
No known key found for this signature in database
GPG Key ID: E4C40DBD9157879A
1 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,15 @@
#![deny(rustdoc::broken_intra_doc_links, rust_2018_idioms)]
#![warn(
clippy::clone_on_ref_ptr,
clippy::dbg_macro,
clippy::explicit_iter_loop,
// See https://github.com/influxdata/influxdb_iox/pull/1671
clippy::future_not_send,
clippy::todo,
clippy::use_self,
missing_debug_implementations,
)]
use async_trait::async_trait;
use authz::{Authorizer, IoxAuthorizer};
use clap_blocks::querier::QuerierConfig;
@ -131,7 +143,7 @@ pub enum IoxHttpError {
impl IoxHttpError {
fn status_code(&self) -> HttpApiErrorCode {
match self {
IoxHttpError::NotFound => HttpApiErrorCode::NotFound,
Self::NotFound => HttpApiErrorCode::NotFound,
}
}
}