casbin / casbin-rs

An authorization library that supports access control models like ACL, RBAC, ABAC in Rust.
https://casbin.org
Apache License 2.0
828 stars 67 forks source link

fix: resolve cargo clippy warnings #296

Closed greenhandatsjtu closed 2 years ago

greenhandatsjtu commented 2 years ago

there are 3 errors when running cargo clippy -- -D warnings , I fixed it

casbin-bot commented 2 years ago

@smrpn @hackerchai @PsiACE @GopherJ please review

codecov[bot] commented 2 years ago

Codecov Report

Merging #296 (90eea76) into master (4a661f3) will decrease coverage by 0.00%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #296      +/-   ##
==========================================
- Coverage   81.52%   81.51%   -0.01%     
==========================================
  Files          23       23              
  Lines        3480     3479       -1     
==========================================
- Hits         2837     2836       -1     
  Misses        643      643              
Impacted Files Coverage Δ
src/effector.rs 85.10% <ø> (-0.32%) :arrow_down:
src/rbac_api.rs 91.20% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4a661f3...90eea76. Read the comment docs.