mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-22 22:26:54 +03:00
fix(style): simplify the conversion from bool
to i32
(#1075)
This commit is contained in:
parent
31def4102f
commit
6e7d43d367
@ -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…
Reference in New Issue
Block a user