chore: cleanup code

This commit is contained in:
Zomatree
2023-03-15 19:47:30 +00:00
parent 0321eff62b
commit f309218573
11 changed files with 11 additions and 29 deletions

View File

@@ -37,7 +37,7 @@ impl AbstractAttachment for MongoDb {
parent_type: &str,
parent_id: &str,
) -> Result<File> {
let key = format!("{}_id", parent_type);
let key = format!("{parent_type}_id");
match self
.find_one::<File>(
COL,

View File

@@ -264,7 +264,7 @@ impl AbstractUser for MongoDb {
[
{
"_id": target_id,
"status": format!("{:?}", relationship)
"status": format!("{relationship:?}")
}
]
]