diff --git a/.gitignore b/.gitignore index 04c077e49..d98402c23 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ # Please see LICENSE files in the repository root for full details. # Rust -target/ +target # Editors .idea diff --git a/clippy.toml b/clippy.toml index 2d1274857..41d584369 100644 --- a/clippy.toml +++ b/clippy.toml @@ -15,7 +15,6 @@ disallowed-methods = [ ] disallowed-types = [ - "rand::OsRng", { path = "std::path::PathBuf", reason = "use camino::Utf8PathBuf instead" }, { path = "std::path::Path", reason = "use camino::Utf8Path instead" }, ] diff --git a/crates/handlers/src/graphql/mod.rs b/crates/handlers/src/graphql/mod.rs index 7dcf81b5d..9f51e8752 100644 --- a/crates/handlers/src/graphql/mod.rs +++ b/crates/handlers/src/graphql/mod.rs @@ -341,8 +341,7 @@ pub async fn post( let request = async_graphql::http::receive_body( content_type, - body.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e)) - .into_async_read(), + body.map_err(std::io::Error::other).into_async_read(), MultipartOptions::default(), ) .await? diff --git a/crates/storage/src/compat/access_token.rs b/crates/storage/src/compat/access_token.rs index c554a8d79..d927009b7 100644 --- a/crates/storage/src/compat/access_token.rs +++ b/crates/storage/src/compat/access_token.rs @@ -13,7 +13,7 @@ use ulid::Ulid; use crate::{Clock, repository_impl}; /// A [`CompatAccessTokenRepository`] helps interacting with -/// [`CompatAccessToken`] saved in the storage backend +/// [`CompatAccessToken`] saved in the storage backend #[async_trait] pub trait CompatAccessTokenRepository: Send + Sync { /// The error type returned by the repository diff --git a/crates/storage/src/oauth2/client.rs b/crates/storage/src/oauth2/client.rs index 2a3356938..bf2d10a29 100644 --- a/crates/storage/src/oauth2/client.rs +++ b/crates/storage/src/oauth2/client.rs @@ -17,7 +17,7 @@ use url::Url; use crate::{Clock, repository_impl}; -/// An [`OAuth2ClientRepository`] helps interacting with [`Client`] saved in the +/// An [`OAuth2ClientRepository`] helps interacting with [`Client`] saved in the /// storage backend #[async_trait] pub trait OAuth2ClientRepository: Send + Sync {