cargo fmt
This commit is contained in:
parent
526b699845
commit
9e7ee27253
2 changed files with 5 additions and 4 deletions
|
@ -12,9 +12,9 @@ pub fn get_args() -> ArgMatches {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("test")
|
Arg::new("test")
|
||||||
.short('t')
|
.short('t')
|
||||||
.long("test")
|
.long("test")
|
||||||
.required(false)
|
.required(false)
|
||||||
.value_names(&["key", "val"])
|
.value_names(["key", "val"])
|
||||||
.number_of_values(2)
|
.number_of_values(2)
|
||||||
.help("Add test case to json patch"),
|
.help("Add test case to json patch"),
|
||||||
)
|
)
|
||||||
|
|
|
@ -156,14 +156,15 @@ fn main() {
|
||||||
let path = test_cases.get(0).unwrap();
|
let path = test_cases.get(0).unwrap();
|
||||||
let val = test_cases.get(1).unwrap();
|
let val = test_cases.get(1).unwrap();
|
||||||
|
|
||||||
diff.as_array_mut().unwrap().insert(0,
|
diff.as_array_mut().unwrap().insert(
|
||||||
|
0,
|
||||||
serde_json::json!(
|
serde_json::json!(
|
||||||
{
|
{
|
||||||
"op": "test",
|
"op": "test",
|
||||||
"path": path,
|
"path": path,
|
||||||
"value": val
|
"value": val
|
||||||
}
|
}
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue