Skip to content

Commit c94a9ac

Browse files
committed
Auto merge of #42426 - arthurprs:io_error, r=sfackler
Inline io::Error creation from ErrorKind Faster and smaller code for mio and tokio (PRs on those to follow)
2 parents 0418fa9 + 4bda94d commit c94a9ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/io/error.rs

+1
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ impl ErrorKind {
208208
/// the heap (for normal construction via Error::new) is too costly.
209209
#[stable(feature = "io_error_from_errorkind", since = "1.14.0")]
210210
impl From<ErrorKind> for Error {
211+
#[inline]
211212
fn from(kind: ErrorKind) -> Error {
212213
Error {
213214
repr: Repr::Simple(kind)

0 commit comments

Comments
 (0)