diff options
| author | arthurprs <arthurprs@gmail.com> | 2017-06-04 19:45:44 +0200 |
|---|---|---|
| committer | arthurprs <arthurprs@gmail.com> | 2017-06-04 19:45:44 +0200 |
| commit | 4bda94d0d820bf7baf2e97ec3552fe290b826391 (patch) | |
| tree | d6ed3f8a36eefecc66255cb6f6c08453f6836d14 /src/libstd | |
| parent | 81734e0e06d24cf580dd5352c64d10110e4d3b7b (diff) | |
| download | rust-4bda94d0d820bf7baf2e97ec3552fe290b826391.tar.gz rust-4bda94d0d820bf7baf2e97ec3552fe290b826391.zip | |
inline io::Error creation from ErrorKind
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/error.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs index fb67eaf3c63..0a5804a7744 100644 --- a/src/libstd/io/error.rs +++ b/src/libstd/io/error.rs @@ -208,6 +208,7 @@ impl ErrorKind { /// the heap (for normal construction via Error::new) is too costly. #[stable(feature = "io_error_from_errorkind", since = "1.14.0")] impl From<ErrorKind> for Error { + #[inline] fn from(kind: ErrorKind) -> Error { Error { repr: Repr::Simple(kind) |
