소스 검색

Add Clone impl to EthernetFrame

Closes: #163
Approved by: whitequark
Andrew Cann 7 년 전
부모
커밋
1ea5ada5df
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 }