Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Conversation

@PsiACE
Copy link
Contributor

@PsiACE PsiACE commented Jul 15, 2020

Fixed errors like this

   |
17 |     if let Ok(authorized) = e.enforce(&[name, "data", action]).await {
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `std::result::Result<bool, casbin::error::Error>`

Just remove .await. Everything else is normal.

Close #21

@hsluoyz
Copy link
Member

hsluoyz commented Jul 15, 2020

@GopherJ @hackerchai

@hsluoyz hsluoyz requested review from 0x8f701 and hackerchai July 15, 2020 01:17
@hackerchai
Copy link
Member

lgtm. Thanks!

@hackerchai hackerchai merged commit 07e0f66 into casbin-rs:master Jul 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants