datastore: inline some format variables

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-13 12:41:45 +02:00
parent 1ddfae5499
commit addcb7803e
1 changed files with 1 additions and 3 deletions

View File

@ -713,9 +713,7 @@ impl BackupNamespace {
.strip_prefix(&source_prefix.inner[..]) .strip_prefix(&source_prefix.inner[..])
.ok_or_else(|| { .ok_or_else(|| {
format_err!( format_err!(
"Failed to map namespace - {} is not a valid prefix of {}", "Failed to map namespace - {source_prefix} is not a valid prefix of {self}",
source_prefix,
self
) )
})?; })?;