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:
Hocuri
2025-02-25 11:29:31 +01:00
committed by GitHub
parent 3df693a1bb
commit c5cf16f32a
4 changed files with 9 additions and 9 deletions

View File

@@ -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))
}