diff --git a/crates/kitsune-oidc/src/http.rs b/crates/kitsune-oidc/src/http.rs index e76c899b6..c38a50a08 100644 --- a/crates/kitsune-oidc/src/http.rs +++ b/crates/kitsune-oidc/src/http.rs @@ -6,7 +6,6 @@ use openidconnect::{HttpRequest, HttpResponse}; static HTTP_CLIENT: Lazy = Lazy::new(HttpClient::default); -#[allow(clippy::missing_panics_doc)] pub async fn async_client(req: HttpRequest) -> Result { let mut request = Request::builder().method(req.method).uri(req.url.as_str()); *request.headers_mut().unwrap() = req.headers; diff --git a/crates/kitsune-oidc/src/lib.rs b/crates/kitsune-oidc/src/lib.rs index b2f7de72e..7bcc5e44b 100644 --- a/crates/kitsune-oidc/src/lib.rs +++ b/crates/kitsune-oidc/src/lib.rs @@ -1,3 +1,12 @@ +#![forbid(rust_2018_idioms, unsafe_code)] +#![warn(clippy::all, clippy::pedantic)] +#![allow( + clippy::missing_errors_doc, + clippy::missing_panics_doc, + clippy::module_name_repetitions, + forbidden_lint_groups +)] + use crate::{ error::Result, state::{