From 55014275916a196086f98a1c1f6a6ca19c373ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Sat, 25 Nov 2023 20:10:50 +0100 Subject: [PATCH] chore(clippy): fix lint --- packages/vorbis_rs/src/common/ogg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vorbis_rs/src/common/ogg.rs b/packages/vorbis_rs/src/common/ogg.rs index 45d05d3..d47f1af 100644 --- a/packages/vorbis_rs/src/common/ogg.rs +++ b/packages/vorbis_rs/src/common/ogg.rs @@ -1,4 +1,4 @@ -use std::{io::Write, mem::MaybeUninit, slice}; +use std::{io::Write, mem::MaybeUninit, os::raw::c_int, slice}; use ogg_next_sys::{ ogg_packet, ogg_page, ogg_stream_clear, ogg_stream_flush, ogg_stream_init, ogg_stream_packetin, @@ -54,7 +54,7 @@ impl OggStream { ogg_stream_pageout_fill( &mut self.ogg_stream, ogg_page.as_mut_ptr(), - minimum_page_data_size.try_into()? + minimum_page_data_size as c_int ) } else { ogg_stream_pageout(&mut self.ogg_stream, ogg_page.as_mut_ptr())