Skip to content

Commit b7a6e88

Browse files
committed
fix: Invoice.with_payment_method function types
1 parent 51a00f4 commit b7a6e88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/invoice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<'a> Invoice<'a> {
6666
self
6767
}
6868

69-
pub fn with_payment_method(&mut self, payment_method: PaymentMethod<'a>) -> &Self {
69+
pub fn with_payment_method(mut self, payment_method: PaymentMethod<'a>) -> Self {
7070
self.payment_method = Some(payment_method);
7171
self
7272
}

0 commit comments

Comments
 (0)