From 3161023cf2e681189be1e895e94bb90bb63f4b9d Mon Sep 17 00:00:00 2001 From: Hackerchai Date: Fri, 4 Sep 2020 20:34:56 +0800 Subject: [PATCH] Feat: update functions --- Cargo.toml | 2 +- tests/test_set_enforcer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1e12c10..e44ddef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/tests/test_set_enforcer.rs b/tests/test_set_enforcer.rs index 0d1aef1..053814d 100644 --- a/tests/test_set_enforcer.rs +++ b/tests/test_set_enforcer.rs @@ -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::::set_enforcer(enforcer)