📎 makes clippy happy

This commit is contained in:
Irevoire 2022-08-12 14:18:27 +02:00
parent e6b806e0cf
commit 83e20027fd
No known key found for this signature in database
GPG key ID: 7A6A970C96104F1B
9 changed files with 15 additions and 13 deletions

View file

@ -31,7 +31,7 @@ pub const DEFAULT_HIGHLIGHT_POST_TAG: fn() -> String = || "</em>".to_string();
/// will be able to return in one search call.
pub const DEFAULT_PAGINATION_MAX_TOTAL_HITS: usize = 1000;
#[derive(Deserialize, Debug, Clone, PartialEq)]
#[derive(Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct SearchQuery {
pub q: Option<String>,

View file

@ -31,10 +31,10 @@ where
.serialize(s)
}
#[derive(Clone, Default, Debug, Serialize, PartialEq)]
#[derive(Clone, Default, Debug, Serialize, PartialEq, Eq)]
pub struct Checked;
#[derive(Clone, Default, Debug, Serialize, Deserialize, PartialEq)]
#[derive(Clone, Default, Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct Unchecked;
#[cfg_attr(test, derive(proptest_derive::Arbitrary))]