Skip to content

Commit dfb092d

Browse files
authored
Merge pull request #699 from Oakchris1955/writezero_impls
Fix missing impls from and to std's io::ErrorKind for WriteZero variant
2 parents e833acd + 82e1c7b commit dfb092d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

embedded-io/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ impl From<ErrorKind> for std::io::ErrorKind {
137137
ErrorKind::Interrupted => std::io::ErrorKind::Interrupted,
138138
ErrorKind::Unsupported => std::io::ErrorKind::Unsupported,
139139
ErrorKind::OutOfMemory => std::io::ErrorKind::OutOfMemory,
140+
ErrorKind::WriteZero => std::io::ErrorKind::WriteZero,
140141
_ => std::io::ErrorKind::Other,
141142
}
142143
}
@@ -163,6 +164,7 @@ impl From<std::io::ErrorKind> for ErrorKind {
163164
std::io::ErrorKind::Interrupted => ErrorKind::Interrupted,
164165
std::io::ErrorKind::Unsupported => ErrorKind::Unsupported,
165166
std::io::ErrorKind::OutOfMemory => ErrorKind::OutOfMemory,
167+
std::io::ErrorKind::WriteZero => ErrorKind::WriteZero,
166168
_ => ErrorKind::Other,
167169
}
168170
}

0 commit comments

Comments
 (0)