diff options
| author | John Kugelman <john@kugelman.name> | 2021-10-10 18:22:40 -0400 |
|---|---|---|
| committer | John Kugelman <john@kugelman.name> | 2021-10-10 19:00:33 -0400 |
| commit | cf2bcd10ed28b169b8df74383c2a35a4ffbdcf40 (patch) | |
| tree | 87acd2edbff6d167abc4e8e70c702da9b9e350fa /library/std/src/io | |
| parent | 6928fafe06e4ab29317f75194e1bf67c119dccdc (diff) | |
Add #[must_use] to from_value conversions
Diffstat (limited to 'library/std/src/io')
| -rw-r--r-- | library/std/src/io/error.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs index 51666c0a3c7..57b5c28430f 100644 --- a/library/std/src/io/error.rs +++ b/library/std/src/io/error.rs @@ -473,6 +473,7 @@ impl Error { /// # } /// ``` #[stable(feature = "rust1", since = "1.0.0")] + #[must_use] #[inline] pub fn from_raw_os_error(code: i32) -> Error { Error { repr: Repr::Os(code) } |
