We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44af919 commit 260c609Copy full SHA for 260c609
src/errors.rs
@@ -0,0 +1,8 @@
1
+impl core::fmt::Display for crate::io::error::Error {
2
+ fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
3
+ f.write_str(&self.to_debug_string())
4
+ }
5
+}
6
+
7
+#[cfg(feature = "std")]
8
+impl std::error::Error for crate::io::error::Error {}
src/lib.rs
@@ -179,6 +179,8 @@
179
#[cfg(feature = "std")]
180
extern crate std;
181
182
+mod errors;
183
184
// These modules are all auto-generated by `./ci/regenerate.sh`
185
mod bindings;
186
#[allow(unused_imports)]
0 commit comments