tidy up
This commit is contained in:
parent
ad738296a0
commit
b727949dcd
|
@ -26,29 +26,29 @@ const DEFAULT_SIZE: usize = 25;
|
|||
|
||||
#[derive(Copy, Clone, Debug, Deserialize)]
|
||||
enum SortKey {
|
||||
Name,
|
||||
Size,
|
||||
Seeds,
|
||||
Leeches,
|
||||
Scraped,
|
||||
Name,
|
||||
Size,
|
||||
Seeds,
|
||||
Leeches,
|
||||
Scraped,
|
||||
}
|
||||
|
||||
impl Default for SortKey {
|
||||
fn default() -> Self {
|
||||
Self::Scraped
|
||||
}
|
||||
fn default() -> Self {
|
||||
Self::Scraped
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Deserialize)]
|
||||
enum SortDirection {
|
||||
Asc,
|
||||
Desc,
|
||||
Asc,
|
||||
Desc,
|
||||
}
|
||||
|
||||
impl Default for SortDirection {
|
||||
fn default() -> Self {
|
||||
Self::Desc
|
||||
}
|
||||
fn default() -> Self {
|
||||
Self::Desc
|
||||
}
|
||||
}
|
||||
|
||||
#[actix_rt::main]
|
||||
|
|
Loading…
Reference in New Issue