Skip to content

Commit

Permalink
add lints
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Oct 29, 2023
1 parent ce78790 commit 45e1b9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/kitsune-oidc/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use openidconnect::{HttpRequest, HttpResponse};

static HTTP_CLIENT: Lazy<HttpClient> = Lazy::new(HttpClient::default);

#[allow(clippy::missing_panics_doc)]
pub async fn async_client(req: HttpRequest) -> Result<HttpResponse, kitsune_http_client::Error> {
let mut request = Request::builder().method(req.method).uri(req.url.as_str());
*request.headers_mut().unwrap() = req.headers;
Expand Down
9 changes: 9 additions & 0 deletions crates/kitsune-oidc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down

0 comments on commit 45e1b9e

Please sign in to comment.