Skip to content

Commit 56cdb7f

Browse files
Fix unused field in struct
Change-Id: I09d4a45bd2e6f1bcd09f93b8b36db7507664be2e
1 parent eca7e76 commit 56cdb7f

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)