mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
rs: Fix two small regressions
These were only in the test targets, but still.
This commit is contained in:
@@ -347,6 +347,6 @@ mod test {
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
let u: cln_rpc::model::ListpeersResponse = serde_json::from_value(j).unwrap();
|
let u: cln_rpc::model::ListpeersResponse = serde_json::from_value(j).unwrap();
|
||||||
let g: ListpeersResponse = (&u).into();
|
let _g: ListpeersResponse = u.into();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ mod test {
|
|||||||
let read_req = dbg!(read.next().await.unwrap().unwrap());
|
let read_req = dbg!(read.next().await.unwrap().unwrap());
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
json!({"id": "1", "method": "getinfo", "params": {}, "jsonrpc": "2.0"}),
|
json!({"id": 1, "method": "getinfo", "params": {}, "jsonrpc": "2.0"}),
|
||||||
read_req
|
read_req
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user