ソースを参照

Added #[derive(Clone)] for HostAndPort

Alex Mikhalev 9 年 前
コミット
e14763dab0
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/host.rs

+ 1 - 0
src/host.rs

@@ -120,6 +120,7 @@ impl<S: AsRef<str>> fmt::Display for Host<S> {
 
 /// This mostly exists because coherence rules don’t allow us to implement
 /// `ToSocketAddrs for (Host<S>, u16)`.
+#[derive(Clone)]
 pub struct HostAndPort<S=String> {
     pub host: Host<S>,
     pub port: u16,