Przeglądaj źródła

Auto merge of #250 - amikhalev:HostAndPort-derive-Clone, r=SimonSapin

Added #[derive(Clone)] for HostAndPort

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/250)
<!-- Reviewable:end -->
bors-servo 9 lat temu
rodzic
commit
117d6f2b26
1 zmienionych plików z 1 dodań i 0 usunięć
  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,