casbin / casbin-rs

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

ft: remove borrow errors and made Assertion struct fields public #272

Closed 0xethsign closed 3 years ago

0xethsign commented 3 years ago

Signed-off-by: smrpn samarpan_d@pp.iitr.ac.in

codecov[bot] commented 3 years ago

Codecov Report

Merging #272 (7395ad6) into master (613a74a) will decrease coverage by 0.95%. The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #272      +/-   ##
==========================================
- Coverage   79.83%   78.87%   -0.96%     
==========================================
  Files          22       22              
  Lines        3387     3385       -2     
==========================================
- Hits         2704     2670      -34     
- Misses        683      715      +32     
Impacted Files Coverage Δ
src/model/assertion.rs 56.33% <ø> (ø)
src/rbac/default_role_manager.rs 93.23% <66.66%> (-0.41%) :arrow_down:
src/util.rs 97.72% <100.00%> (ø)
src/rbac_api.rs 89.19% <0.00%> (-4.85%) :arrow_down:
src/cache/default_cache.rs 94.11% <0.00%> (-2.95%) :arrow_down:
src/management_api.rs 89.10% <0.00%> (-1.29%) :arrow_down:
src/enforcer.rs 85.94% <0.00%> (+0.39%) :arrow_up:

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 613a74a...7395ad6. Read the comment docs.