From 10eb51260e876b9e82856f9ebcd7f9342d28f1a3 Mon Sep 17 00:00:00 2001 From: John-Mark Allen Date: Sun, 4 Jul 2021 17:20:48 +0100 Subject: [PATCH] Fix lint --- imgui-glow-renderer/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {