fix(style): simplify the conversion from bool to i32 (#1075)
This commit is contained in:
parent
31def4102f
commit
6e7d43d367
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue