Skip to content

Commit

Permalink
Replace show-image crate
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbeitz committed Oct 18, 2023
1 parent d17ea8e commit c8eb1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/common/src/image_rendering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn render_image_to_canvas(
image_pitch,
PixelFormatEnum::RGB24,
)
.map_err(|err| format!("{}", err.to_string()))?;
.map_err(|err| err.to_string())?;

let texture_creator = canvas.texture_creator();
let texture = texture_creator.create_texture_from_surface(surface).unwrap();
Expand Down

0 comments on commit c8eb1a0

Please sign in to comment.