diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-03-14 04:03:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-14 04:03:20 +0900 |
| commit | 5d90154886039ddbd7c1b8bf4cc273b774b14ec7 (patch) | |
| tree | a21db30c91aa3dc3455ddb70dd7fdb9553b2c51c /src/libstd/io | |
| parent | 54b7d21f59a363e53eb1c31d76b40af2ff99321c (diff) | |
| parent | 79b8ad84c84481a43704213cd0948d2ba0ea63b4 (diff) | |
| download | rust-5d90154886039ddbd7c1b8bf4cc273b774b14ec7.tar.gz rust-5d90154886039ddbd7c1b8bf4cc273b774b14ec7.zip | |
Rollup merge of #69403 - LeSeulArtichaut:copy-ioslice, r=sfackler
Implement `Copy` for `IoSlice` Resolves #69395 r? @sfackler
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 420d6ea589a..dc831432c17 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1050,6 +1050,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>); |
