Skip to content

Commit 44ca04c

Browse files
committed
core: refactor closure error matching
1 parent 71b37b2 commit 44ca04c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ impl Pwm {
124124
{
125125
self.export()?;
126126
match closure() {
127-
Ok(()) => self.unexport(),
128-
Err(_) => self.unexport(),
127+
Ok(()) | Err(_) => self.unexport(),
129128
}
130129
}
131130

0 commit comments

Comments
 (0)