]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add `(C-not exported)` tag to a `Payee` modifier with move semantics
authorMatt Corallo <git@bluematt.me>
Mon, 1 Nov 2021 04:23:30 +0000 (04:23 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 2 Nov 2021 20:50:42 +0000 (20:50 +0000)
This matches the other `Payee` move-modifier functions.

lightning/src/routing/router.rs

index 6caba67785ed9ae1175274469a5aeeb1338b5d4e..974ae74e4960f0c636670f721106aa4cb8d87d53 100644 (file)
@@ -232,6 +232,8 @@ impl Payee {
        }
 
        /// Includes a payment expiration in seconds relative to the UNIX epoch.
+       ///
+       /// (C-not exported) since bindings don't support move semantics
        pub fn with_expiry_time(self, expiry_time: u64) -> Self {
                Self { expiry_time: Some(expiry_time), ..self }
        }