Skip to content

Commit 8ef5179

Browse files
committed
Make clippy happy for real this time
I swear I run this locally...
1 parent 1682066 commit 8ef5179

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/controllers/category.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ pub fn index(req: &mut dyn Request) -> CargoResult<Response> {
1616
let offset = options.offset().unwrap_or_default();
1717
let sort = query.get("sort").map_or("alpha", String::as_str);
1818

19-
let categories = Category::toplevel(&conn, sort, i64::from(options.per_page), i64::from(offset))?;
19+
let categories =
20+
Category::toplevel(&conn, sort, i64::from(options.per_page), i64::from(offset))?;
2021
let categories = categories.into_iter().map(Category::encodable).collect();
2122

2223
// Query for the total count of categories

src/controllers/helpers/pagination.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl<T> PaginatedQuery<T> {
146146
where
147147
Self: LoadQuery<PgConnection, WithCount<U>>,
148148
{
149-
let options = self.options.clone();
149+
let options = self.options;
150150
let records_and_total = self.internal_load(conn)?;
151151
Ok(Paginated {
152152
records_and_total,

0 commit comments

Comments
 (0)