Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
disabled clippy messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aloise committed Jun 7, 2022
1 parent 4afa8f4 commit dc7d19e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "microtools"
version = "0.4.1"
version = "0.4.2"
authors = ["Bodo Junglas <[email protected]>", "Ihor Mordashev <[email protected]"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/auth_middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ pub fn admin_scope(auth_context: &AuthContext) -> bool {
}

impl FromRequest for AuthContext {
type Config = ();
type Error = Problem;
type Future = Ready<Result<AuthContext, Problem>>;
type Config = ();

fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future {
match req.extensions().get::<AuthContext>() {
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![crate_type = "lib"]

pub mod auth_middleware;
pub mod business_result;
pub mod elasticsearch;
Expand Down

0 comments on commit dc7d19e

Please sign in to comment.