Skip to content

Commit

Permalink
Fixed clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
fatfingers23 committed Dec 1, 2023
1 parent 802669d commit 7698a96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gateway/src/auth.rs
Expand Up @@ -87,9 +87,7 @@ where
if user.projects.contains(&scope) || user.claim.scopes.contains(&Scope::Admin) {
Ok(Self { user, scope })
} else {
Err(Error::from(ErrorKind::ProjectNotFound(ProjectName::from(
scope,
))))
Err(Error::from(ErrorKind::ProjectNotFound(scope)))
}
}
}

0 comments on commit 7698a96

Please sign in to comment.