Skip to content

Commit

Permalink
rust: Fix a couple of clippies form Rust 1.72
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissie-c committed Aug 30, 2023
1 parent 683d108 commit 082399c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libknet/bindings/rust/src/knet_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//
#![allow(clippy::too_many_arguments)]
#![allow(clippy::collapsible_else_if)]
#![allow(clippy::bad_bit_mask)]

// For the code generated by bindgen
use crate::sys::libknet as ffi;
Expand Down Expand Up @@ -231,7 +232,7 @@ extern "C" fn rust_filter_fn(
// Is there is filter fn?
if let Some(f) = h.filter_fn {
let data : &[u8] = unsafe {
std::slice::from_raw_parts(outdata as *const u8, outdata_len as usize)
std::slice::from_raw_parts(outdata, outdata_len as usize)
};
let mut r_channel = unsafe {*channel};
let mut hosts_vec = Vec::<HostId>::new();
Expand Down

0 comments on commit 082399c

Please sign in to comment.