From f1f58b2a8ad8907337e1d542fa8f17990f053862 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 13 Aug 2021 20:05:10 +0700 Subject: Fix `panic!` warnings in `integration_opengl` example --- examples/integration_opengl/src/scene.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/integration_opengl/src/scene.rs') diff --git a/examples/integration_opengl/src/scene.rs b/examples/integration_opengl/src/scene.rs index 2a27be11..ccca0d29 100644 --- a/examples/integration_opengl/src/scene.rs +++ b/examples/integration_opengl/src/scene.rs @@ -52,7 +52,7 @@ impl Scene { ); gl.compile_shader(shader); if !gl.get_shader_compile_status(shader) { - panic!(gl.get_shader_info_log(shader)); + panic!("{}", gl.get_shader_info_log(shader)); } gl.attach_shader(program, shader); shaders.push(shader); @@ -60,7 +60,7 @@ impl Scene { gl.link_program(program); if !gl.get_program_link_status(program) { - panic!(gl.get_program_info_log(program)); + panic!("{}", gl.get_program_info_log(program)); } for shader in shaders { -- cgit