rs: Fix two small regressions

These were only in the test targets, but still.
This commit is contained in:
Christian Decker 2022-10-25 14:49:53 +02:00
parent 8a4f44a58d
commit 93c95056a3
2 changed files with 2 additions and 2 deletions

View file

@ -347,6 +347,6 @@ mod test {
]
});
let u: cln_rpc::model::ListpeersResponse = serde_json::from_value(j).unwrap();
let g: ListpeersResponse = (&u).into();
let _g: ListpeersResponse = u.into();
}
}

View file

@ -146,7 +146,7 @@ mod test {
let read_req = dbg!(read.next().await.unwrap().unwrap());
assert_eq!(
json!({"id": "1", "method": "getinfo", "params": {}, "jsonrpc": "2.0"}),
json!({"id": 1, "method": "getinfo", "params": {}, "jsonrpc": "2.0"}),
read_req
);
}