-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve/inheritance #103
Improve/inheritance #103
Conversation
Codecov Report
@@ Coverage Diff @@
## master #103 +/- ##
==========================================
+ Coverage 82.44% 86.41% +3.96%
==========================================
Files 20 20
Lines 2803 2841 +38
==========================================
+ Hits 2311 2455 +144
+ Misses 492 386 -106
Continue to review full report at Codecov.
|
/// } | ||
/// #[cfg(all(not(feature = "runtime-async-std"), not(feature = "runtime-tokio")))] | ||
/// fn main() {} | ||
/// ``` | ||
pub fn enforce<S: AsRef<str>>(&self, rvals: &[S]) -> Result<bool> { | ||
async fn enforce<S: AsRef<str> + Send + Sync>(&mut self, rvals: &[S]) -> Result<bool> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found no mutation in enforce
method, do we really need to use &mut self
here?
Try to solve #99