Explorar o código

Merge pull request #318 from ishitatsuyuki/patch-1

bpf: Remove unnecessary Sync bound on PerCpuArray<T>
Dave Tucker %!s(int64=3) %!d(string=hai) anos
pai
achega
f3574b0e70
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bpf/aya-bpf/src/maps/per_cpu_array.rs

+ 1 - 1
bpf/aya-bpf/src/maps/per_cpu_array.rs

@@ -14,7 +14,7 @@ pub struct PerCpuArray<T> {
     _t: PhantomData<T>,
 }
 
-unsafe impl<T: Sync> Sync for PerCpuArray<T> {}
+unsafe impl<T> Sync for PerCpuArray<T> {}
 
 impl<T> PerCpuArray<T> {
     pub const fn with_max_entries(max_entries: u32, flags: u32) -> PerCpuArray<T> {