Explain runtime invariants and avoid redundant unwraps
This commit is contained in:
1 parent
34f2f07301
commit
1b51ba83b4
116 files changed
+1643
-515
No files matched your search
@@ -234,7 +234,10 @@ impl Capture {
|
||||
}
|
||||
|
||||
frame.destroy();
|
||||
self.state.result.take().unwrap()?;
|
||||
self.state
|
||||
.result
|
||||
.take()
|
||||
.expect("the capture dispatch loop exits after storing its result")?;
|
||||
|
||||
let buffer = self
|
||||
.state
|
||||
|
||||
Reference in new issue
Block a user