api: config: run rustfmt

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2024-12-02 10:58:08 +01:00 committed by Fabian Grünbichler
parent cdeed5e440
commit d61bac6841

View File

@ -178,7 +178,11 @@ pub fn create_datastore(
}
if config.backing_device.is_none() && !config.path.starts_with("/") {
param_bail!("path", "expected an absolute path, '{}' is not", config.path);
param_bail!(
"path",
"expected an absolute path, '{}' is not",
config.path
);
}
if config.backing_device.is_some() && config.path.starts_with("/") {
param_bail!(