Skip to content

Commit e303f09

Browse files
johan-bjareholtalgesten
authored andcommitted
Fix unused field in struct
1 parent 79f8cdd commit e303f09

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/mod.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,15 @@ impl Write for Recorder {
120120
}
121121
}
122122

123-
pub(crate) struct TestStream(
124-
Box<dyn Read + Send + Sync>,
125-
Box<dyn Write + Send + Sync>,
126-
bool,
127-
);
123+
pub(crate) struct TestStream(Box<dyn Read + Send + Sync>, Box<dyn Write + Send + Sync>);
128124

129125
impl TestStream {
130126
#[cfg(test)]
131127
pub(crate) fn new(
132128
response: impl Read + Send + Sync + 'static,
133129
recorder: impl Write + Send + Sync + 'static,
134130
) -> Self {
135-
Self(Box::new(response), Box::new(recorder), false)
131+
Self(Box::new(response), Box::new(recorder))
136132
}
137133
}
138134

0 commit comments

Comments
 (0)