mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2025-02-06 10:39:29 +00:00
qemu-rdw: minor code simplification
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
142148e8db
commit
a4b0394f27
@ -221,9 +221,8 @@ fn watch_clipboard(
|
||||
}
|
||||
|
||||
fn clipboard_from_selection(selection: ClipboardSelection) -> Option<(gdk::Clipboard, usize)> {
|
||||
let display = match gdk::Display::default() {
|
||||
Some(display) => display,
|
||||
None => return None,
|
||||
let Some(display) = gdk::Display::default() else {
|
||||
return None;
|
||||
};
|
||||
|
||||
match selection {
|
||||
|
Loading…
x
Reference in New Issue
Block a user