mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-08 21:18:07 +03:00
getopt: whitespace cleanup
to make rustfmt happy Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
a0cc09b5f0
commit
7d95c10da0
@ -57,7 +57,6 @@ pub fn parse_arguments<T: AsRef<str>>(
|
|||||||
arg_param: &Vec<&'static str>,
|
arg_param: &Vec<&'static str>,
|
||||||
schema: &ObjectSchema,
|
schema: &ObjectSchema,
|
||||||
) -> Result<(Value, Vec<String>), ParameterError> {
|
) -> Result<(Value, Vec<String>), ParameterError> {
|
||||||
|
|
||||||
let mut errors = ParameterError::new();
|
let mut errors = ParameterError::new();
|
||||||
|
|
||||||
let properties = &schema.properties;
|
let properties = &schema.properties;
|
||||||
@ -156,10 +155,8 @@ pub fn parse_arguments<T: AsRef<str>>(
|
|||||||
Ok((options, rest))
|
Ok((options, rest))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_boolean_arg() {
|
fn test_boolean_arg() {
|
||||||
|
|
||||||
let schema = ObjectSchema::new("Parameters:")
|
let schema = ObjectSchema::new("Parameters:")
|
||||||
.required(
|
.required(
|
||||||
"enable", BooleanSchema::new("Enable")
|
"enable", BooleanSchema::new("Enable")
|
||||||
@ -191,7 +188,6 @@ fn test_boolean_arg() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_argument_paramenter() {
|
fn test_argument_paramenter() {
|
||||||
|
|
||||||
let schema = ObjectSchema::new("Parameters:")
|
let schema = ObjectSchema::new("Parameters:")
|
||||||
.required("enable", BooleanSchema::new("Enable."))
|
.required("enable", BooleanSchema::new("Enable."))
|
||||||
.required("storage", StringSchema::new("Storage."));
|
.required("storage", StringSchema::new("Storage."));
|
||||||
|
Loading…
Reference in New Issue
Block a user