cargo fmt

This commit is contained in:
2026-03-18 02:04:31 +08:00
parent 5e0f5f19f0
commit aa2ccf6c3f
20 changed files with 88 additions and 65 deletions

View File

@@ -1,7 +1,7 @@
use reqwest::Client;
use crate::{lock_r, services::auth::with_auth, state::FDOLL, models::dolls::*};
use crate::models::remote_error::RemoteError;
use crate::{lock_r, models::dolls::*, services::auth::with_auth, state::FDOLL};
pub struct DollsRemote {
pub base_url: String,
@@ -19,7 +19,8 @@ impl DollsRemote {
.expect("App configuration error")
.clone(),
client: guard
.network.clients
.network
.clients
.as_ref()
.expect("App configuration error")
.http_client

View File

@@ -1,7 +1,7 @@
use reqwest::Client;
use crate::{lock_r, services::auth::with_auth, state::FDOLL, models::friends::*};
use crate::models::remote_error::RemoteError;
use crate::{lock_r, models::friends::*, services::auth::with_auth, state::FDOLL};
pub struct FriendRemote {
pub base_url: String,
@@ -19,7 +19,8 @@ impl FriendRemote {
.expect("App configuration error")
.clone(),
client: guard
.network.clients
.network
.clients
.as_ref()
.expect("App configuration error")
.http_client

View File

@@ -1,6 +1,6 @@
use reqwest::Client;
use crate::{lock_r, state::FDOLL, models::health::*};
use crate::{lock_r, models::health::*, state::FDOLL};
pub struct HealthRemote {
pub base_url: String,
@@ -18,7 +18,8 @@ impl HealthRemote {
.ok_or(HealthError::ConfigMissing("api_base_url"))?;
let client = guard
.network.clients
.network
.clients
.as_ref()
.map(|c| c.http_client.clone())
.ok_or(HealthError::ConfigMissing("http_client"))?;

View File

@@ -1,6 +1,6 @@
use reqwest::{Client, Error};
use crate::{lock_r, services::auth::with_auth, state::FDOLL, models::user::*};
use crate::{lock_r, models::user::*, services::auth::with_auth, state::FDOLL};
pub struct UserRemote {
pub base_url: String,
@@ -18,7 +18,8 @@ impl UserRemote {
.expect("App configuration error")
.clone(),
client: guard
.network.clients
.network
.clients
.as_ref()
.expect("App configuration error")
.http_client