Skip to content

Commit

Permalink
Feat: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerchai committed Jul 29, 2020
1 parent 51acceb commit f97de79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ actix-rt = "1.1.1"
1. Using actix-casbin as actor alone

```rust
use actix_casbin::casbin::{DefaultModel, FileAdapter, Result};
use actix_casbin::casbin::{DefaultModel, FileAdapter, Result, Enforcer};
use actix_casbin::{CasbinActor, CasbinCmd, CasbinResult};

#[actix_rt::main]
Expand Down Expand Up @@ -56,9 +56,9 @@ async fn main() -> Result<()> {
```
2. Use actix-casbin with casbin actix middleware [actix-casbin-auth](https://github.com/casbin-rs/actix-casbin-auth)
```rust
use actix_casbin::casbin::{DefaultModel, FileAdapter, Result, CachedEnforcer};
use actix_casbin::{CasbinActor, CasbinCmd, CasbinResult};
use actix_casbin_auth::CasbinService;
use casbin::prelude::*;

#[actix_rt::main]
async fn main() -> Result<()> {
Expand Down

0 comments on commit f97de79

Please sign in to comment.