Skip to content

Commit 0cdaf78

Browse files
authored
Merge pull request #9 from Dirbaio/io7
Update embedded-io to 0.7
2 parents 943d9a5 + 8d9eb13 commit 0cdaf78

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ keywords = ["embedded", "buffer", "embedded-io", "read", "write"]
1111
exclude = [".github"]
1212

1313
[dependencies]
14-
embedded-io = { version = "0.6" }
15-
embedded-io-async = { version = "0.6" }
14+
embedded-io = { version = "0.7" }
15+
embedded-io-async = { version = "0.7" }
1616

1717
[dev-dependencies]
18-
embedded-io-async = { version = "0.6", features = ["std"] }
19-
embedded-io-adapters = { version = "0.6", features = ["std"] }
18+
embedded-io-async = { version = "0.7", features = ["std"] }
19+
embedded-io-adapters = { version = "0.7", features = ["std"] }
2020
tokio = { version = "1", features = ["macros", "rt"] }
2121
tokio-test = "0.4"

src/asynch/write.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ mod tests {
213213
#[derive(Debug)]
214214
struct UnstableError;
215215

216+
impl core::fmt::Display for UnstableError {
217+
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
218+
write!(f, "UnstableError")
219+
}
220+
}
221+
222+
impl std::error::Error for UnstableError {}
223+
216224
impl Error for UnstableError {
217225
fn kind(&self) -> ErrorKind {
218226
ErrorKind::Other
@@ -234,6 +242,10 @@ mod tests {
234242
Err(UnstableError)
235243
}
236244
}
245+
246+
async fn flush(&mut self) -> Result<(), Self::Error> {
247+
Ok(())
248+
}
237249
}
238250

239251
#[tokio::test]

0 commit comments

Comments
 (0)