technocreatives / core2

The bare essentials of std::io for use in no_std. Alloc support is optional.
https://docs.rs/core2
Apache License 2.0
71 stars 23 forks source link

Fixes for core2::io::{Error, Cursor} doctests #6

Closed GeneFerneau closed 3 years ago

GeneFerneau commented 3 years ago

Adds From<std::io::Error> for core2::io::Error and From<std::io::ErrorKind> for core2::io::ErrorKind trait impls.

Uses those impls in the doctests when std feature is enabled.

Minor name change fixes in core2/src/io/buffered.rs for bare_io -> core2::io.

Other doctests in core2/src/io/traits.rs and elsewhere require implementation of core2::io traits for std types (not included in this PR).

bbqsrc commented 3 years ago

Manually rebased and merged into main with the necessary bugfix. Thanks!