chore: FnOnce is more general
This commit is contained in:
@@ -12,7 +12,7 @@ use spdlog::info;
|
||||
pub async fn login_action<R>(
|
||||
client: &AsyncClient,
|
||||
user_id: u32,
|
||||
action: impl AsyncFn(UserLoginApiResp) -> R,
|
||||
action: impl AsyncFnOnce(UserLoginApiResp) -> R,
|
||||
) -> Result<R, ApiError> {
|
||||
let login = UserLoginApi::new(user_id);
|
||||
let date_time = login.date_time;
|
||||
|
||||
Reference in New Issue
Block a user