Skip to content

Commit fb11c17

Browse files
committed
fix i32 release
1 parent f372b44 commit fb11c17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: oryx-tui/src/ebpf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub fn load_ingress(
239239

240240
#[cfg(not(debug_assertions))]
241241
let mut bpf = match EbpfLoader::new()
242-
.set_global("TRAFFIC_DIRECTION", &(-1 as i32), true)
242+
.set_global("TRAFFIC_DIRECTION", &-1i32, true)
243243
.load(include_bytes_aligned!(
244244
"../../target/bpfel-unknown-none/release/oryx"
245245
)) {
@@ -443,7 +443,7 @@ pub fn load_egress(
443443

444444
#[cfg(not(debug_assertions))]
445445
let mut bpf = match EbpfLoader::new()
446-
.set_global("TRAFFIC_DIRECTION", &(1 as i32), true)
446+
.set_global("TRAFFIC_DIRECTION", &1i32, true)
447447
.load(include_bytes_aligned!(
448448
"../../target/bpfel-unknown-none/release/oryx"
449449
)) {

0 commit comments

Comments
 (0)