We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OnceCell
OnceLock
1 parent 4a747ef commit b41ba20Copy full SHA for b41ba20
src/controllers/krate/search.rs
@@ -10,8 +10,8 @@ use diesel_async::async_connection_wrapper::AsyncConnectionWrapper;
10
use diesel_async::AsyncPgConnection;
11
use diesel_full_text_search::*;
12
use http::request::Parts;
13
-use std::cell::OnceCell;
14
use tokio::runtime::Handle;
+use std::sync::OnceLock;
15
16
use crate::app::AppState;
17
use crate::controllers::helpers::Paginate;
@@ -282,8 +282,8 @@ struct FilterParams<'a> {
282
team_id: Option<i32>,
283
following: bool,
284
has_ids: bool,
285
- _auth_user_id: OnceCell<i32>,
286
- _ids: OnceCell<Option<Vec<String>>>,
+ _auth_user_id: OnceLock<i32>,
+ _ids: OnceLock<Option<Vec<String>>>,
287
}
288
289
impl<'a> FilterParams<'a> {
0 commit comments