diff --git a/imgui-glow-renderer/src/lib.rs b/imgui-glow-renderer/src/lib.rs index 16befd1..4f55953 100644 --- a/imgui-glow-renderer/src/lib.rs +++ b/imgui-glow-renderer/src/lib.rs @@ -602,7 +602,7 @@ impl TextureMap for TrivialTextureMap { /// `Textures` from the `imgui` crate is a simple choice for a texture map impl TextureMap for imgui::Textures { fn gl_texture(&self, imgui_texture: imgui::TextureId) -> Option { - self.get(imgui_texture).cloned() + self.get(imgui_texture).copied() } fn register(&mut self, gl_texture: glow::Texture) -> Option {