Pass `InFlightHltcs` to the scorer by ownership rather than ref
[rust-lightning] / fuzz / src / full_stack.rs
index 9caf91040346c45436671cb0f4c3e74ad1cbb373..1fbd7dbec8834b9e9dee38f1c19ff02e770f79d1 100644 (file)
@@ -131,7 +131,7 @@ struct FuzzRouter {}
 impl Router for FuzzRouter {
        fn find_route(
                &self, _payer: &PublicKey, _params: &RouteParameters, _first_hops: Option<&[&ChannelDetails]>,
-               _inflight_htlcs: &InFlightHtlcs
+               _inflight_htlcs: InFlightHtlcs
        ) -> Result<Route, msgs::LightningError> {
                Err(msgs::LightningError {
                        err: String::from("Not implemented"),