We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ae5f3a commit c4305d0Copy full SHA for c4305d0
src/eh1/spi.rs
@@ -191,29 +191,6 @@ where
191
type Error = spi::ErrorKind;
192
}
193
194
-#[derive(Default)]
195
-struct SpiBusFuture {
196
- awaited: bool,
197
-}
198
-
199
-impl std::future::Future for SpiBusFuture {
200
- type Output = Result<(), spi::ErrorKind>;
201
202
- fn poll(
203
- mut self: std::pin::Pin<&mut Self>,
204
- _cx: &mut std::task::Context<'_>,
205
- ) -> std::task::Poll<Self::Output> {
206
- self.awaited = true;
207
- std::task::Poll::Ready(Ok(()))
208
- }
209
210
211
-impl Drop for SpiBusFuture {
212
- fn drop(&mut self) {
213
- assert!(self.awaited, "spi::flush call was not awaited");
214
215
216
217
impl<W> SpiBus<W> for Mock<W>
218
where
219
W: Copy + 'static + Debug + PartialEq,
0 commit comments