Chore: update artwork and fix warnings
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Dorian Zedler 2023-04-20 17:24:49 +02:00
parent 43b0b1d7a7
commit 85c6d4741f
Signed by: dozedler
GPG key ID: 989DE36109AFA354
2 changed files with 3 additions and 25 deletions

@ -1 +1 @@
Subproject commit f7ead83291e2f462888d73530f239ab3a48b4abd
Subproject commit 13b39b2537350a24fe69a309e7f676a3c25f7bd0

View file

@ -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<bool, D::Error>
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)]