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
@@ -185,7 +185,7 @@ pub fn init(event_loop: &mut EventLoop<Ferese>, state: &mut Ferese) -> Result<()
|
||||
let _ = renderer
|
||||
.render(
|
||||
framebuffer,
|
||||
output.current_mode().unwrap().size,
|
||||
output.current_mode().expect("a rendered output must have a current mode").size,
|
||||
output.current_transform(),
|
||||
)?
|
||||
.finish()?;
|
||||
|
||||
Reference in new issue
Block a user