mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 06:26:30 +03:00
refactor: Let BlobObject::from_name() take &str (#6571)
This way, all the callers don't have to call to_string()
This commit is contained in:
@@ -367,7 +367,7 @@ impl Params {
|
||||
return Ok(None);
|
||||
};
|
||||
ensure!(val.starts_with("$BLOBDIR/"));
|
||||
let blob = BlobObject::from_name(context, val.to_string())?;
|
||||
let blob = BlobObject::from_name(context, val)?;
|
||||
Ok(Some(blob))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user