Kaynağa Gözat

src/ebpf.rs: derive `Clone` trait for `Insn`

Quentin Monnet 8 yıl önce
ebeveyn
işleme
e7af284d83
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/ebpf.rs

+ 1 - 1
src/ebpf.rs

@@ -362,7 +362,7 @@ pub type Helper = fn (u64, u64, u64, u64, u64) -> u64;
 /// See <https://www.kernel.org/doc/Documentation/networking/filter.txt> for the Linux kernel
 /// documentation about eBPF, or <https://github.com/iovisor/bpf-docs/blob/master/eBPF.md> for a
 /// more concise version.
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Clone)]
 pub struct Insn {
     /// Operation code.
     pub opc: u8,