Skip to content

Commit c6bc7cd

Browse files
committed
remove Warning in examples
1 parent bd70757 commit c6bc7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/demo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn run(font_path: &Path) {
7575
let padding = 64;
7676
let target = get_centered_rect(width, height, SCREEN_WIDTH - padding, SCREEN_HEIGHT - padding);
7777

78-
renderer.copy(&mut texture, None, Some(target));
78+
renderer.copy(&mut texture, None, Some(target)).unwrap();
7979
renderer.present();
8080

8181
'mainloop: loop {

0 commit comments

Comments
 (0)