Skip to content

Commit

Permalink
Fix unused field in struct
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-bjareholt authored and algesten committed Mar 26, 2024
1 parent 79f8cdd commit e303f09
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,15 @@ impl Write for Recorder {
}
}

pub(crate) struct TestStream(
Box<dyn Read + Send + Sync>,
Box<dyn Write + Send + Sync>,
bool,
);
pub(crate) struct TestStream(Box<dyn Read + Send + Sync>, Box<dyn Write + Send + Sync>);

impl TestStream {
#[cfg(test)]
pub(crate) fn new(
response: impl Read + Send + Sync + 'static,
recorder: impl Write + Send + Sync + 'static,
) -> Self {
Self(Box::new(response), Box::new(recorder), false)
Self(Box::new(response), Box::new(recorder))
}
}

Expand Down

0 comments on commit e303f09

Please sign in to comment.