cargo fmt
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"))?;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user