Ver código fonte

Add Clone impl to EthernetFrame

Closes: #163
Approved by: whitequark
Andrew Cann 7 anos atrás
pai
commit
1ea5ada5df
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/wire/ethernet.rs

+ 1 - 1
src/wire/ethernet.rs

@@ -77,7 +77,7 @@ impl fmt::Display for Address {
 }
 
 /// A read/write wrapper around an Ethernet II frame buffer.
-#[derive(Debug)]
+#[derive(Debug, Clone)]
 pub struct Frame<T: AsRef<[u8]>> {
     buffer: T
 }