Use nightly clippy & rustfmt for more style checks (#487)

This commit is contained in:
Jonas Platte
2021-11-09 11:53:57 +00:00
committed by GitHub
parent bcd18a03bc
commit 9c77ee0295
32 changed files with 69 additions and 65 deletions
@@ -31,6 +31,7 @@ async fn handler(Query(params): Query<Params>) -> String {
///
/// [`serde_with`]: https://docs.rs/serde_with/1.11.0/serde_with/rust/string_empty_as_none/index.html
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct Params {
#[serde(default, deserialize_with = "empty_string_as_none")]
foo: Option<String>,