From 85c6d4741f6dc53f250dc83de26e1a6675e976c0 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 20 Apr 2023 17:24:49 +0200 Subject: [PATCH] Chore: update artwork and fix warnings --- artwork | 2 +- src/routes/logo.rs | 26 ++------------------------ 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/artwork b/artwork index f7ead83..13b39b2 160000 --- a/artwork +++ b/artwork @@ -1 +1 @@ -Subproject commit f7ead83291e2f462888d73530f239ab3a48b4abd +Subproject commit 13b39b2537350a24fe69a309e7f676a3c25f7bd0 diff --git a/src/routes/logo.rs b/src/routes/logo.rs index 7933b16..903c566 100644 --- a/src/routes/logo.rs +++ b/src/routes/logo.rs @@ -1,31 +1,9 @@ -use std::default; - use axum::{extract::Query, routing::get, Router}; use cairo::{Context, Format, ImageSurface}; use rust_embed::RustEmbed; -use serde::{de, Deserialize}; +use serde::Deserialize; -use crate::{color::Color, polygon, SharedState}; - -fn default_as_false() -> bool { - false -} - -fn deserialize_bool<'de, D>(deserializer: D) -> Result -where - D: de::Deserializer<'de>, -{ - let s: &str = de::Deserialize::deserialize(deserializer)?; - - match s { - "true" | "on" => Ok(true), - "false" | "off" => Ok(false), - _ => Err(de::Error::unknown_variant( - s, - &["true", "on", "false", "off"], - )), - } -} +use crate::{polygon, SharedState}; #[derive(Deserialize, Default)] #[allow(non_camel_case_types)]