Closed Fishrock123 closed 3 years ago
Mentioned in https://github.com/http-rs/http-types/pull/319#issuecomment-761530241 StatusCode is Clone, but it's also Copy, as it is just a wrapper around u16. I think we should remove Clone from it since it doesn't really make sense.
StatusCode
Clone
Copy
u16
Copy has a requirement on Clone. It's defined as:
pub trait Copy: Clone { }
We can't remove Clone for that reason.
Mentioned in https://github.com/http-rs/http-types/pull/319#issuecomment-761530241
StatusCode
isClone
, but it's alsoCopy
, as it is just a wrapper aroundu16
. I think we should removeClone
from it since it doesn't really make sense.