We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4570e68 commit a36fb87Copy full SHA for a36fb87
lightning/src/offers/parse.rs
@@ -65,7 +65,7 @@ impl<T: SeekReadable> TryFrom<Vec<u8>> for ParsedMessage<T> {
65
type Error = DecodeError;
66
67
fn try_from(bytes: Vec<u8>) -> Result<Self, Self::Error> {
68
- let mut cursor = crate::io::Cursor::new(bytes);
+ let mut cursor = io::Cursor::new(bytes);
69
let tlv_stream: T = SeekReadable::read(&mut cursor)?;
70
71
if cursor.position() < cursor.get_ref().len() as u64 {
0 commit comments