proxmox-rest-server: cleanup formatter, improve docs
Use trait for OutputFormatter. This is functionally equivalent, but more rust-like...
This commit is contained in:
@ -1332,7 +1332,7 @@ pub fn upload_backup_log(
|
||||
replace_file(&path, blob.raw_data(), CreateOptions::new())?;
|
||||
|
||||
// fixme: use correct formatter
|
||||
Ok(formatter::json_response(Ok(Value::Null)))
|
||||
Ok(formatter::JSON_FORMATTER.format_data(Value::Null, &*rpcenv))
|
||||
}.boxed()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user