fix(style): simplify the conversion from bool to i32 (#1075)

This commit is contained in:
Ken Matsui 2022-02-24 19:34:46 +09:00 committed by GitHub
parent 31def4102f
commit 6e7d43d367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ pub fn unsubscribe(event_types: &[EventType]) {
// Plugin Settings
pub fn set_selectable(selectable: bool) {
unsafe { host_set_selectable(if selectable { 1 } else { 0 }) };
unsafe { host_set_selectable(selectable as i32) };
}
// Query Functions