From c8c1faef7ac0b4e51bfc34bb6269a06a1f827923 Mon Sep 17 00:00:00 2001 From: st170001 Date: Thu, 9 May 2024 21:14:58 +0200 Subject: [PATCH] Renamed lambda function parameter --- src/graphql/model/user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphql/model/user.rs b/src/graphql/model/user.rs index 92f9b8d..36a52b5 100644 --- a/src/graphql/model/user.rs +++ b/src/graphql/model/user.rs @@ -44,7 +44,7 @@ impl User { let sorting_doc = doc! {wishlist_order.field.unwrap_or_default().as_str(): i32::from(wishlist_order.direction.unwrap_or_default())}; let find_options = FindOptions::builder() .skip(skip) - .limit(first.map(|first_u32| i64::from(first_u32))) + .limit(first.map(|definitely_first| i64::from(definitely_first))) .sort(sorting_doc) .build(); let document_collection = collection.clone_with_type::();