Skip to content

Commit

Permalink
Merge pull request #15 from hackerchai/master
Browse files Browse the repository at this point in the history
Feat: bump version 0.4.0
  • Loading branch information
hackerchai authored Aug 31, 2020
2 parents fc5771d + 1163a70 commit edcff6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-casbin"
version = "0.3.3"
version = "0.4.0"
authors = ["Eason Chai <hackerchai.com@gmail.com>","Cheng JIANG <jiang.cheng@vip.163.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -14,8 +14,8 @@ path = "src/lib.rs"

[dependencies]
actix = "0.9.0"
casbin = { version = "1.1.3", default-features = false, features = [ "incremental", "cached"] }
actix-casbin-auth = { version = "0.3.2", default-features = false }
casbin = { version = "2.0.1", default-features = false, features = [ "incremental", "cached"] }
actix-casbin-auth = { version = "0.4.0", 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.3.3"
actix-casbin = "0.4.0"
actix-rt = "1.1.1"
```

Expand Down
2 changes: 1 addition & 1 deletion src/casbin_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl<T: IEnforcer + 'static> Handler<CasbinCmd> for CasbinActor<T> {
async move {
let mut lock = cloned_enforcer.write().await;
let result = match msg {
CasbinCmd::Enforce(policy) => lock.enforce(&policy).map(CasbinResult::Enforce),
CasbinCmd::Enforce(policy) => lock.enforce(policy).map(CasbinResult::Enforce),
CasbinCmd::AddPolicy(policy) => {
lock.add_policy(policy).await.map(CasbinResult::AddPolicy)
}
Expand Down

0 comments on commit edcff6d

Please sign in to comment.