Skip to content

Commit

Permalink
Merge pull request #16 from hackerchai/master
Browse files Browse the repository at this point in the history
Feat: bump version 0.4.1
  • Loading branch information
hackerchai authored Sep 4, 2020
2 parents edcff6d + 96b3cf6 commit 2bf03da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-casbin"
version = "0.4.0"
version = "0.4.1"
authors = ["Eason Chai <hackerchai.com@gmail.com>","Cheng JIANG <jiang.cheng@vip.163.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

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 2bf03da

Please sign in to comment.