summaryrefslogtreecommitdiff
path: root/src/deserialise/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/deserialise/test.rs')
-rw-r--r--src/deserialise/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deserialise/test.rs b/src/deserialise/test.rs
index 70293cb..e398b4d 100644
--- a/src/deserialise/test.rs
+++ b/src/deserialise/test.rs
@@ -19,7 +19,7 @@
// er General Public License along with bzipper. If
// not, see <https://www.gnu.org/licenses/>.
-use crate::{Deserialise, FixedString};
+use crate::{Deserialise, Dstream, FixedString};
#[test]
fn test_deserialise() {
@@ -33,7 +33,7 @@ fn test_deserialise() {
0x00, 0x03, 0xB1, 0x01, 0x00, 0x00, 0x01, 0x80,
];
- let mut stream = From::from(&data);
+ let mut stream = Dstream::new(&data);
assert_eq!(
u8::deserialise(&mut stream).unwrap(),