-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IoSlice
does not implement Clone
#69395
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Comments
jonas-schievink
added
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
labels
Feb 23, 2020
IoSlice should be able to implement Copy and Clone - I think the current lack is just an oversight when I added the type. Feel free to make a PR! |
If you need someone to file a PR, I’m up! |
I will create a PR soon, but thanks anyways for the offer. |
Oops, I already created #69403 😅 |
Whops, I didn't see the linked pull request. Never mind then, lets continue with your PR. |
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 12, 2020
…ckler Implement `Copy` for `IoSlice` Resolves rust-lang#69395 r? @sfackler
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 13, 2020
…ckler Implement `Copy` for `IoSlice` Resolves rust-lang#69395 r? @sfackler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
IoSlice
(fromstd::io
) does not implement theClone
trait. Is there a reason for this? Cloning can be safely simulated withIoSlice::new(*slice)
, but the lack of theClone
trait prevents from using functions such asVec::<IoSlice>::extend_from_slice
.The text was updated successfully, but these errors were encountered: