We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c1f21b commit 3285d5aCopy full SHA for 3285d5a
1 file changed
crates/runner-shared/src/unwind_data.rs
@@ -3,19 +3,15 @@ use core::{
3
hash::{Hash, Hasher},
4
};
5
use serde::{Deserialize, Serialize};
6
-use std::{
7
- hash::DefaultHasher,
8
- io::{Read, Seek},
9
- ops::Range,
10
-};
+use std::{hash::DefaultHasher, ops::Range};
11
12
pub const UNWIND_FILE_EXT: &str = "unwind2";
13
14
pub type UnwindData = UnwindDataV2;
15
16
impl UnwindData {
17
- pub fn parse<R: Read + Seek>(mut reader: R) -> anyhow::Result<Self> {
18
- let compat: UnwindDataCompat = bincode::deserialize_from(&mut reader)?;
+ pub fn parse(reader: &[u8]) -> anyhow::Result<Self> {
+ let compat: UnwindDataCompat = bincode::deserialize(reader)?;
19
20
match compat {
21
UnwindDataCompat::V1(v1) => Ok(v1.into()),
0 commit comments