mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
Rust: Fix compile expected u32, found i32
This commit is contained in:
parent
4ec1bfd8be
commit
8ed451e4ee
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user