1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -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

@@ -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/") {