-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
uprev notify to 5.0.0-pre.16 #182
Conversation
Add (And if you want the debouncer, it is the only way to enable some features on init.) |
Codecov Report
@@ Coverage Diff @@
## main #182 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 385 385
Branches 81 81
=========================================
Hits 385 385 Continue to review full report at Codecov.
|
Thanks, done I think.
|
The idea was to allow extending this in the future. Your idea would break semver (require a major release) if I'd add more settings into the new() call. |
Ye I see that, rust's lack of default/optional/keyword arguments bites again. |
You can actually do Config {
delay: 1,
..default()
} But that's cumbersome and doesn't require (AFAIK) you to actually do the default call, so would break semver. (I've got the feeling I'm missing some better option.) |
Yes, I thought about exactly that, but if you do let config = Config {
poll_interval: delay,
compare_contents: whatever,
...Default::default(),
}; (adding the I think clippy would complain that |
ref notify-rs/notify#249 (comment)