cargo fmt

This commit is contained in:
JMARyA 2023-11-17 23:11:05 +01:00
parent 526b699845
commit 9e7ee27253
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 5 additions and 4 deletions

View file

@ -12,9 +12,9 @@ pub fn get_args() -> ArgMatches {
.arg(
Arg::new("test")
.short('t')
.long("test")
.long("test")
.required(false)
.value_names(&["key", "val"])
.value_names(["key", "val"])
.number_of_values(2)
.help("Add test case to json patch"),
)

View file

@ -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
}
)
),
);
}