Skip to content

Commit

Permalink
Fix missing trait imports (#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillFish8 authored Aug 27, 2023
1 parent e6cacc4 commit 131c10d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/src/file_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl FileHandle for WrapFile {

#[cfg(not(unix))]
{
use std::io::{Read, Seek};
let mut file = self.file.try_clone()?; // Clone the file to read from it separately
// Seek to the start position in the file
file.seek(io::SeekFrom::Start(start as u64))?;
Expand Down

0 comments on commit 131c10d

Please sign in to comment.