Skip to content

Commit 3285d5a

Browse files
committed
fixup: dont' use seek
1 parent 5c1f21b commit 3285d5a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

crates/runner-shared/src/unwind_data.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ use core::{
33
hash::{Hash, Hasher},
44
};
55
use serde::{Deserialize, Serialize};
6-
use std::{
7-
hash::DefaultHasher,
8-
io::{Read, Seek},
9-
ops::Range,
10-
};
6+
use std::{hash::DefaultHasher, ops::Range};
117

128
pub const UNWIND_FILE_EXT: &str = "unwind2";
139

1410
pub type UnwindData = UnwindDataV2;
1511

1612
impl UnwindData {
17-
pub fn parse<R: Read + Seek>(mut reader: R) -> anyhow::Result<Self> {
18-
let compat: UnwindDataCompat = bincode::deserialize_from(&mut reader)?;
13+
pub fn parse(reader: &[u8]) -> anyhow::Result<Self> {
14+
let compat: UnwindDataCompat = bincode::deserialize(reader)?;
1915

2016
match compat {
2117
UnwindDataCompat::V1(v1) => Ok(v1.into()),

0 commit comments

Comments
 (0)