Skip to content

Commit

Permalink
fix(clippy)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Apr 20, 2023
1 parent 065b680 commit d21e614
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/api/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,16 @@ struct Document {
highlight: elastic::ResponseHighlight,
}

#[derive(Deserialize)]
#[derive(Deserialize, Default)]
#[serde(rename_all = "lowercase")]
enum Sort {
#[default]
Best,
Relevance,
Popularity,
}

impl Default for Sort {
fn default() -> Self {
Sort::Best
}
}


#[derive(Deserialize)]
struct Params {
Expand Down

0 comments on commit d21e614

Please sign in to comment.