mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2024-12-22 13:45:18 +00:00
qemu-rdw: fix a clippy warning
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
504611a853
commit
79fa942b7a
@ -221,9 +221,7 @@ fn watch_clipboard(
|
||||
}
|
||||
|
||||
fn clipboard_from_selection(selection: ClipboardSelection) -> Option<(gdk::Clipboard, usize)> {
|
||||
let Some(display) = gdk::Display::default() else {
|
||||
return None;
|
||||
};
|
||||
let display = gdk::Display::default()?;
|
||||
|
||||
match selection {
|
||||
ClipboardSelection::Clipboard => Some((display.clipboard(), 0)),
|
||||
|
Loading…
Reference in New Issue
Block a user