style: cargo fmt
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful

This commit is contained in:
Radical 2025-07-10 15:37:45 +02:00
parent e8b8b49643
commit e8a9857e19
13 changed files with 87 additions and 41 deletions

View file

@ -4,7 +4,7 @@ use diesel_async::RunQueryDsl;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use crate::{error::Error, objects::Me, schema::users, Conn, Data};
use crate::{Conn, Data, error::Error, objects::Me, schema::users};
use super::load_or_empty;
@ -68,7 +68,11 @@ impl User {
Ok(user)
}
pub async fn fetch_one_with_friendship(data: &Data, me: &Me, user_uuid: Uuid) -> Result<Self, Error> {
pub async fn fetch_one_with_friendship(
data: &Data,
me: &Me,
user_uuid: Uuid,
) -> Result<Self, Error> {
let mut conn = data.pool.get().await?;
let mut user = Self::fetch_one(data, user_uuid).await?;