Skip to content

Commit e5445fb

Browse files
committed
f - Fix for older versions of rustc
1 parent fde7504 commit e5445fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-invoice/src/payment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ mod tests {
12961296
if let Some(expectation) = self.expectations.pop_front() {
12971297
match expectation {
12981298
PaymentPath::Failure { path, short_channel_id } => {
1299-
assert_eq!(actual_path, path.iter().collect::<Vec<_>>());
1299+
assert_eq!(actual_path, &path.iter().collect::<Vec<_>>()[..]);
13001300
assert_eq!(actual_short_channel_id, short_channel_id);
13011301
},
13021302
PaymentPath::Success { path } => {
@@ -1313,7 +1313,7 @@ mod tests {
13131313
panic!("Unexpected payment path failure: {:?}", path)
13141314
},
13151315
PaymentPath::Success { path } => {
1316-
assert_eq!(actual_path, path.iter().collect::<Vec<_>>());
1316+
assert_eq!(actual_path, &path.iter().collect::<Vec<_>>()[..]);
13171317
},
13181318
}
13191319
}

0 commit comments

Comments
 (0)