Skip to content

Commit

Permalink
no std imports!
Browse files Browse the repository at this point in the history
  • Loading branch information
KillingSpark committed Dec 21, 2024
1 parent c3022ed commit 8bb22b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoding/frame_compressor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl<R: Read, W: Write, M: Matcher> FrameCompressor<R, W, M> {

/// Before calling [FrameCompressor::compress] you can replace the matcher
pub fn replace_matcher(&mut self, mut match_generator: M) -> M {
std::mem::swap(&mut match_generator, &mut self.match_generator);
core::mem::swap(&mut match_generator, &mut self.match_generator);
match_generator
}

Expand All @@ -113,7 +113,7 @@ impl<R: Read, W: Write, M: Matcher> FrameCompressor<R, W, M> {
&mut self,
mut compression_level: CompressionLevel,
) -> CompressionLevel {
std::mem::swap(&mut compression_level, &mut self.compression_level);
core::mem::swap(&mut compression_level, &mut self.compression_level);
compression_level
}

Expand Down

0 comments on commit 8bb22b2

Please sign in to comment.