diff --git a/Cargo.toml b/Cargo.toml index 1e12c10..8dc30ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-casbin" -version = "0.4.0" +version = "0.4.1" authors = ["Eason Chai ","Cheng JIANG "] edition = "2018" license = "Apache-2.0" @@ -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/README.md b/README.md index 2068bdb..062474a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Add it to `Cargo.toml` ```rust -actix-casbin = "0.4.0" +actix-casbin = "0.4.1" actix-rt = "1.1.1" ``` 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)