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