Skip to content

Commit 3aa43c4

Browse files
committed
fix(window-state): Remove unnecessary reference in denylist pattern processing
1 parent 832e990 commit 3aa43c4

File tree

1 file changed

+1
-2
lines changed
  • plugins/window-state/src

1 file changed

+1
-2
lines changed

plugins/window-state/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ impl Builder {
352352

353353
let mut denylist_patterns = Vec::new();
354354
for pattern in denylist {
355-
denylist_patterns.push(glob::Pattern::new(&pattern)?);
355+
denylist_patterns.push(glob::Pattern::new(pattern)?);
356356
}
357357
self.denylist = denylist_patterns;
358358
Ok(self)
@@ -421,7 +421,6 @@ impl Builder {
421421
.map(|map| map(window.label()))
422422
.unwrap_or_else(|| window.label());
423423

424-
425424
for pattern in &self.denylist {
426425
if pattern.matches(label) {
427426
return;

0 commit comments

Comments
 (0)