Skip to content

Commit

Permalink
Feat: update functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerchai committed Sep 4, 2020
1 parent edcff6d commit 3161023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path = "src/lib.rs"
[dependencies]
actix = "0.9.0"
casbin = { version = "2.0.1", default-features = false, features = [ "incremental", "cached"] }
actix-casbin-auth = { version = "0.4.0", default-features = false }
actix-casbin-auth = { version = "0.4.2", default-features = false }
tokio = { version = "0.2.22", default-features = false, optional = true }
async-std = { version = "1.6.3", default-features = false, optional = true }
futures = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_set_enforcer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async fn test_set_enforcer() {
.unwrap();
let a = FileAdapter::new("examples/rbac_policy.csv");

let mut casbin_middleware = CasbinService::new(m, a).await;
let mut casbin_middleware = CasbinService::new(m, a).await.unwrap();
let enforcer = casbin_middleware.get_enforcer();

let addr = CasbinActor::<CachedEnforcer>::set_enforcer(enforcer)
Expand Down

0 comments on commit 3161023

Please sign in to comment.