Skip to content

Commit

Permalink
Add Send and Sync markers for AdvancedSeekable
Browse files Browse the repository at this point in the history
  • Loading branch information
rorosen committed Feb 16, 2025
1 parent 21d79e8 commit ed2b015
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zstd-safe/src/seekable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ pub struct AdvancedSeekable<'a, F> {
src: *mut F,
}

unsafe impl<F> Send for AdvancedSeekable<'_, F> where F: Send {}
unsafe impl<F> Sync for AdvancedSeekable<'_, F> where F: Sync {}

#[cfg(feature = "std")]
impl<'a, F> core::ops::Deref for AdvancedSeekable<'a, F> {
type Target = Seekable<'a>;
Expand Down

0 comments on commit ed2b015

Please sign in to comment.