mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Return None instead of panicking
This commit is contained in:
parent
8da643d998
commit
1bbe92ff76
2 changed files with 2 additions and 2 deletions
|
@ -356,7 +356,7 @@ impl HostTrait for HostCallbacks {
|
|||
}
|
||||
|
||||
fn get_clipboard_contents(&self) -> Option<String> {
|
||||
unimplemented!()
|
||||
None
|
||||
}
|
||||
|
||||
fn set_clipboard_contents(&self, contents: String) {}
|
||||
|
|
|
@ -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) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue