Rust: Fix compile expected u32, found i32

This commit is contained in:
Tinmarino 2021-09-12 21:23:04 -03:00 committed by nick black
parent 4ec1bfd8be
commit 8ed451e4ee

View File

@ -261,7 +261,7 @@ impl Nc {
/// *C style function: [notcurses_check_pixel_support()][crate::notcurses_check-pixel_support].*
#[allow(clippy::wildcard_in_or_patterns)]
pub fn check_pixel_support(&self) -> NcResult<bool> {
let res = unsafe { crate::notcurses_check_pixel_support(self) };
let res: i32 = unsafe { crate::notcurses_check_pixel_support(self) as i32};
match res {
0 => Ok(false),
1 => Ok(true),