Chore: update artwork and fix warnings
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
43b0b1d7a7
commit
85c6d4741f
2 changed files with 3 additions and 25 deletions
2
artwork
2
artwork
|
@ -1 +1 @@
|
||||||
Subproject commit f7ead83291e2f462888d73530f239ab3a48b4abd
|
Subproject commit 13b39b2537350a24fe69a309e7f676a3c25f7bd0
|
|
@ -1,31 +1,9 @@
|
||||||
use std::default;
|
|
||||||
|
|
||||||
use axum::{extract::Query, routing::get, Router};
|
use axum::{extract::Query, routing::get, Router};
|
||||||
use cairo::{Context, Format, ImageSurface};
|
use cairo::{Context, Format, ImageSurface};
|
||||||
use rust_embed::RustEmbed;
|
use rust_embed::RustEmbed;
|
||||||
use serde::{de, Deserialize};
|
use serde::Deserialize;
|
||||||
|
|
||||||
use crate::{color::Color, polygon, SharedState};
|
use crate::{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"],
|
|
||||||
)),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Deserialize, Default)]
|
#[derive(Deserialize, Default)]
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
|
|
Loading…
Reference in a new issue