Skip to content

Commit

Permalink
remove hardcoded BufRead trait bounds (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jul 5, 2024
1 parent cc5039d commit a3738d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stream/read/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ mod tests;
///
/// This allows to read a stream of compressed data
/// (good for files or heavy network stream).
pub struct Decoder<'a, R: BufRead> {
pub struct Decoder<'a, R> {
reader: zio::Reader<R, raw::Decoder<'a>>,
}

/// An encoder that compress input data from another `Read`.
pub struct Encoder<'a, R: BufRead> {
pub struct Encoder<'a, R> {
reader: zio::Reader<R, raw::Encoder<'a>>,
}

Expand Down

0 comments on commit a3738d6

Please sign in to comment.