Skip to content

Commit

Permalink
Remove Clone requirement from Args
Browse files Browse the repository at this point in the history
  • Loading branch information
amarjanica committed Mar 29, 2022
1 parent 168cf37 commit e02048c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-permissions"
version = "1.0.0"
version = "1.0.1"
edition = "2018"
authors = ["Ana Bujan <ana@eisberg-labs.com>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ pub fn check_with_custom_deny<F, Args, P1, P1Args>(
) -> Route
where
F: Handler<Args>,
Args: FromRequest + 'static + Clone,
Args: FromRequest + 'static,
P1: Permission<P1Args>,
P1Args: FromRequest + 'static + Clone,
P1Args: FromRequest + 'static,
F::Output: Responder,
{
route.service(fn_factory(move || {
Expand Down
4 changes: 0 additions & 4 deletions src/tests/test_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ mod tests {

#[actix_web::test]
async fn test_deny_all_default_handler() {
fn custom_deny_handler(_req: HttpRequest) -> HttpResponse {
HttpResponse::new(StatusCode::FORBIDDEN)
}

async fn deny_all(_req: HttpRequest) -> actix_web::Result<bool> {
Ok(false)
}
Expand Down

0 comments on commit e02048c

Please sign in to comment.