Skip to content

Commit

Permalink
Fix decoder usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharding committed Nov 15, 2023
1 parent caecae5 commit 9237156
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/v0/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ mod tests {
use bitcoin::{ScriptBuf, Witness};

use super::*;
use crate::raw;
use crate::{io, raw};
use crate::serialize::{Deserialize, Serialize};

#[track_caller]
Expand Down Expand Up @@ -714,8 +714,7 @@ mod tests {
..Default::default()
};

let ser = &expected.serialize_map();
let mut decoder = std::io::Cursor::new(&ser);
let mut decoder = io::Cursor::new(expected.serialize_map());
let actual = Output::decode(&mut decoder).unwrap();

assert_eq!(expected, actual);
Expand Down

0 comments on commit 9237156

Please sign in to comment.