Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed May 4, 2024
1 parent 8e5660a commit aeb259a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ utoipa = { version = "4", features = ["axum_extras"] }
utoipa-swagger-ui = { version = "6", features = ["axum"] }
uuid = { version = "1.3.0", features = ["v4", "serde"] }
validator = { version = "0.16.0", features = ["derive"] }
http = "1.1.0"

[dev-dependencies]
async-std = { version = "1.12.0", features = ["attributes"] }
Expand Down
3 changes: 1 addition & 2 deletions delta-sharing/server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ pub fn get_router<T: Send + Clone + 'static>(state: DeltaSharingState<T>) -> Rou
#[cfg(test)]
mod tests {
use axum::body::Body;
use axum::http::{header, HeaderValue, Request};
use axum::http::{header, HeaderValue, Request, StatusCode};
use delta_sharing_core::handlers::VoidRecipientHandler;
use http::StatusCode;
use http_body_util::BodyExt;
use tower::ServiceExt;

Expand Down
8 changes: 7 additions & 1 deletion src/auth/public.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ use crate::auth::RecipientId;
#[derive(Debug, Clone)]
pub struct PublicAccessAuthLayer;

impl Default for PublicAccessAuthLayer {
fn default() -> Self {
Self::new()
}
}

impl PublicAccessAuthLayer {
/// Create a new [`PublicAccessAuthLayer`].
pub fn new() -> Self {
Expand Down Expand Up @@ -99,8 +105,8 @@ mod tests {
use super::*;

use axum::body::Body;
use axum::http::{header, Request, StatusCode};
use axum::response::Response;
use http::{header, Request, StatusCode};
use tower::BoxError;
use tower::ServiceBuilder;
use tower::ServiceExt;
Expand Down

0 comments on commit aeb259a

Please sign in to comment.