Skip to content

Conversation

Conaclos
Copy link
Contributor

@Conaclos Conaclos commented Aug 27, 2025

Fix #688

This PR requires the implementation of Fron<ErrorKind> for Error.
This allows several simplifications in error handling and make embedded-io closer to std::io.
Notably:

  • This allows to remove ReadExactError and to replace it with ErrorKind::UnexpectedEof. This is what std::io does.
  • This allows to remove SliceMutError and to replace it with ErrorKind::StorageFull.

The PR also removes the implementation of Error for Infallible. std::io doesn't allow this.

@Conaclos Conaclos force-pushed the error-from-error-kind branch from 2bf3e0e to 22e12ca Compare August 27, 2025 15:31
@Conaclos Conaclos closed this Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

io: the Error trait could require the implementation of Fom<ErrorKind>.
1 participant