Formatting changes after extract

This commit is contained in:
Dominik Werder
2024-11-26 16:30:07 +01:00
parent a4719aeacc
commit e6f60349af
3 changed files with 63 additions and 29 deletions

View File

@@ -154,7 +154,10 @@ impl FromUrl for AccountingToplistQuery {
.ok_or_else(|| Self::Error::MissingBackend)?
.to_string(),
ts: fn1(pairs)?,
limit: pairs.get("limit").map_or(None, |x| x.parse().ok()).unwrap_or(20),
limit: pairs
.get("limit")
.map_or(None, |x| x.parse().ok())
.unwrap_or(20),
sort: pairs.get("sort").map(ToString::to_string),
};
Ok(ret)