Return None instead of panicking

This commit is contained in:
Michal Mieczkowski 2019-07-02 21:29:45 +02:00
parent 8da643d998
commit 1bbe92ff76
2 changed files with 2 additions and 2 deletions

View file

@ -356,7 +356,7 @@ impl HostTrait for HostCallbacks {
}
fn get_clipboard_contents(&self) -> Option<String> {
unimplemented!()
None
}
fn set_clipboard_contents(&self, contents: String) {}

View file

@ -459,7 +459,7 @@ impl HostTrait for HostCallbacks {
fn on_ime_state_changed(&self, _show: bool) {}
fn get_clipboard_contents(&self) -> Option<String> {
unimplemented!()
None
}
fn set_clipboard_contents(&self, contents: String) {}