diff options
| author | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-02-23 18:18:45 +0100 |
|---|---|---|
| committer | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-02-23 18:32:36 +0100 |
| commit | 79b8ad84c84481a43704213cd0948d2ba0ea63b4 (patch) | |
| tree | 809bf0a06c21790dd1ab32d3675384971b600ac3 /src/libstd/io | |
| parent | 87b0d83745c0cc5b3679e406fbdbf0e8a8bfd3c6 (diff) | |
| download | rust-79b8ad84c84481a43704213cd0948d2ba0ea63b4.tar.gz rust-79b8ad84c84481a43704213cd0948d2ba0ea63b4.zip | |
Implement `Copy` for `IoSlice`
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 67b382c7a84..5dd3ec99676 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1051,6 +1051,7 @@ impl<'a> DerefMut for IoSliceMut<'a> { /// ABI compatible with the `iovec` type on Unix platforms and `WSABUF` on /// Windows. #[stable(feature = "iovec", since = "1.36.0")] +#[derive(Copy, Clone)] #[repr(transparent)] pub struct IoSlice<'a>(sys::io::IoSlice<'a>); |
