1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 21:00:03 -04:00

Clippy fixes

This commit is contained in:
Emil Ernerfeldt
2022-03-21 21:48:35 +01:00
parent 339b28b470
commit 5c68edbb15
7 changed files with 20 additions and 13 deletions

View File

@@ -7,6 +7,7 @@
//! * [`three-d`](https://github.com/asny/three-d)
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
#![allow(unsafe_code)]
use eframe::egui;
@@ -57,7 +58,7 @@ impl eframe::App for MyApp {
}
fn on_exit(&mut self, gl: &glow::Context) {
self.rotating_triangle.lock().destroy(gl)
self.rotating_triangle.lock().destroy(gl);
}
}

View File

@@ -50,6 +50,7 @@ impl eframe::App for MyApp {
}
}
#[allow(clippy::needless_pass_by_value)]
fn parse_response(response: ehttp::Response) -> Result<RetainedImage, String> {
let content_type = response.content_type().unwrap_or_default();
if content_type.starts_with("image/") {