Skip to content

Commit 773073c

Browse files
committed
Add copy implementations
Keep the compiler happy - need to figure out where the \U00ABCD12 and \uABCD warnings are coming from
1 parent acb6584 commit 773073c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/ws/client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,6 @@ impl<S: Stream + Clone> Clone for WebSocketClient<S> {
112112
pub enum WebSocketClientMode {
113113
RemoteClient,
114114
RemoteServer,
115-
}
115+
}
116+
117+
impl Copy for WebSocketClientMode { }

src/ws/handshake/version.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ pub struct HttpVersion {
1414
pub version_minor: Option<u8>,
1515
}
1616

17+
impl Copy for HttpVersion { }
18+
1719
impl HttpVersion {
1820
/// Create a new HttpVersion from major and minor version numbers.
1921
pub fn new(version_major: u8, version_minor: Option<u8>) -> HttpVersion {

0 commit comments

Comments
 (0)