bool -> BOOL, per note in Pull Request #4.

This commit is contained in:
Ryan McGrath 2021-03-18 11:33:43 -07:00
parent 42e4a0d798
commit d8d73e45ad
No known key found for this signature in database
GPG key ID: DA6CBD9233593DEA

View file

@ -94,11 +94,11 @@ pub(crate) fn register_view_class_with_delegate<T: TextFieldDelegate>(instance:
);
decl.add_method(
sel!(textShouldBeginEditing:),
text_should_begin_editing::<T> as extern "C" fn(&mut Object, Sel, id) -> bool,
text_should_begin_editing::<T> as extern "C" fn(&mut Object, Sel, id) -> BOOL,
);
decl.add_method(
sel!(textShouldEndEditing:),
text_should_end_editing::<T> as extern "C" fn(&mut Object, Sel, id) -> bool,
text_should_end_editing::<T> as extern "C" fn(&mut Object, Sel, id) -> BOOL,
);
})
}