From 82e1c7ba59469fcbdd18d498698e0048fddeffc9 Mon Sep 17 00:00:00 2001 From: Oakchris1955 <80592203+Oakchris1955@users.noreply.github.com> Date: Mon, 8 Sep 2025 14:37:18 +0300 Subject: [PATCH] fix: missing impls from and to std's io::ErrorKind for WriteZero --- embedded-io/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embedded-io/src/lib.rs b/embedded-io/src/lib.rs index a0d5b1a1..29262174 100644 --- a/embedded-io/src/lib.rs +++ b/embedded-io/src/lib.rs @@ -137,6 +137,7 @@ impl From for std::io::ErrorKind { ErrorKind::Interrupted => std::io::ErrorKind::Interrupted, ErrorKind::Unsupported => std::io::ErrorKind::Unsupported, ErrorKind::OutOfMemory => std::io::ErrorKind::OutOfMemory, + ErrorKind::WriteZero => std::io::ErrorKind::WriteZero, _ => std::io::ErrorKind::Other, } } @@ -163,6 +164,7 @@ impl From for ErrorKind { std::io::ErrorKind::Interrupted => ErrorKind::Interrupted, std::io::ErrorKind::Unsupported => ErrorKind::Unsupported, std::io::ErrorKind::OutOfMemory => ErrorKind::OutOfMemory, + std::io::ErrorKind::WriteZero => ErrorKind::WriteZero, _ => ErrorKind::Other, } }