Skip to content

Commit c13dca9

Browse files
committed
using io::Cursor in place of the std one
1 parent bacae6e commit c13dca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/util/ser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ mod tests {
12871287
"ffffffffffffffffff"
12881288
];
12891289
for i in 0..=7 {
1290-
let mut stream = std::io::Cursor::new(::hex::decode(bytes[i]).unwrap());
1290+
let mut stream = crate::io::Cursor::new(::hex::decode(bytes[i]).unwrap());
12911291
assert_eq!(super::BigSize::read(&mut stream).unwrap().0, values[i]);
12921292
}
12931293
let err_bytes = vec![
@@ -1303,7 +1303,7 @@ mod tests {
13031303
""
13041304
];
13051305
for i in 0..=9 {
1306-
let mut stream = std::io::Cursor::new(::hex::decode(err_bytes[i]).unwrap());
1306+
let mut stream = crate::io::Cursor::new(::hex::decode(err_bytes[i]).unwrap());
13071307
if i < 3 {
13081308
assert_eq!(super::BigSize::read(&mut stream).err(), Some(crate::ln::msgs::DecodeError::InvalidValue));
13091309
}

0 commit comments

Comments
 (0)