chore: declare and check MSRV (#1034)
* chore: declare and check MSRV * fix: clippy fixes for collapsing if-statements * ci: add explicit contents read permission to MSRV job
This commit is contained in:
parent
e660b805ee
commit
76988023b2
1 changed files with 322 additions and 315 deletions
|
|
@ -550,10 +550,10 @@ where
|
|||
}
|
||||
|
||||
fn notify_if_visible(&self, name: &str) {
|
||||
if self.map.contains_key(name) {
|
||||
if let Some(notifier) = &self.notifier {
|
||||
notifier();
|
||||
}
|
||||
if self.map.contains_key(name)
|
||||
&& let Some(notifier) = &self.notifier
|
||||
{
|
||||
notifier();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue