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 81734e0 commit 4bda94dCopy full SHA for 4bda94d
src/libstd/io/error.rs
@@ -208,6 +208,7 @@ impl ErrorKind {
208
/// the heap (for normal construction via Error::new) is too costly.
209
#[stable(feature = "io_error_from_errorkind", since = "1.14.0")]
210
impl From<ErrorKind> for Error {
211
+ #[inline]
212
fn from(kind: ErrorKind) -> Error {
213
Error {
214
repr: Repr::Simple(kind)
0 commit comments