Skip to content

Commit e3f5772

Browse files
ericktCQ Bot
authored andcommitted
[ebpf] Explicitly specify type with EbpfHelperImpl
An upcoming Rust toolchain change rust-lang/rust#148602 can no longer infer these functions implement the method of an associated type. Change-Id: I04a13aae47036035601d777c8d1470d0d3f1dcde Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1444593 Reviewed-by: Adam Perry <adamperry@google.com> Fuchsia-Auto-Submit: Erick Tryzelaar <etryzelaar@google.com> Commit-Queue: Erick Tryzelaar <etryzelaar@google.com>
1 parent ab0a962 commit e3f5772

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/starnix/lib/ebpf/src/conformance.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ pub mod test {
613613
return_value: Type::UNKNOWN_SCALAR,
614614
invalidate_array_bounds: false,
615615
},
616-
EbpfHelperImpl(write_only),
616+
EbpfHelperImpl::<TestEbpfProgramContext>(write_only),
617617
),
618618
(
619619
103,
@@ -629,7 +629,7 @@ pub mod test {
629629
})),
630630
invalidate_array_bounds: false,
631631
},
632-
EbpfHelperImpl(malloc),
632+
EbpfHelperImpl::<TestEbpfProgramContext>(malloc),
633633
),
634634
(
635635
104,
@@ -638,7 +638,7 @@ pub mod test {
638638
return_value: Type::UNKNOWN_SCALAR,
639639
invalidate_array_bounds: false,
640640
},
641-
EbpfHelperImpl(free),
641+
EbpfHelperImpl::<TestEbpfProgramContext>(free),
642642
),
643643
]
644644
});

0 commit comments

Comments
 (0)