This cast is necessary on some platforms - data_callback returns c_long, which can differ in size. We can add an #[allow(clippy::unnecessary_cast)] instead, which might need a #[allow(unknown_lints)] above it while unnecessary_cast is only in nightly clippy.
This cast is necessary on some platforms -
data_callback
returnsc_long
, which can differ in size. We can add an#[allow(clippy::unnecessary_cast)]
instead, which might need a#[allow(unknown_lints)]
above it whileunnecessary_cast
is only in nightly clippy.