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

refactor: change to once_cell #287

Closed PsiACE closed 2 years ago

PsiACE commented 2 years ago
casbin-bot commented 2 years ago

@smrpn @hackerchai @GopherJ please review

codecov[bot] commented 2 years ago

Codecov Report

Merging #287 (8419d8b) into master (0bc4fd9) will decrease coverage by 0.02%. The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #287      +/-   ##
==========================================
- Coverage   81.04%   81.01%   -0.03%     
==========================================
  Files          23       23              
  Lines        3334     3334              
==========================================
- Hits         2702     2701       -1     
- Misses        632      633       +1     
Impacted Files Coverage Δ
src/util.rs 96.62% <60.00%> (-1.10%) :arrow_down:
src/enforcer.rs 87.25% <100.00%> (-0.03%) :arrow_down:
src/model/function_map.rs 94.44% <100.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 0bc4fd9...8419d8b. Read the comment docs.

hsluoyz commented 2 years ago

@smrpn plz review

hackerchai commented 2 years ago

lgtm thx @PsiACE

hackerchai commented 2 years ago

@smrpn @GopherJ