From d2e552405b5e1e3b7c604c5b9bb916fcbf1337df Mon Sep 17 00:00:00 2001 From: Lucas Timmins Date: Tue, 23 Apr 2019 18:48:55 +0800 Subject: [PATCH] Return empty string for load requests with no seat --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 91d2e78..a948100 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -218,8 +218,10 @@ impl WaylandClipboard { reader.read_to_string(&mut contents).unwrap(); load_send.send(contents).unwrap(); } else { - load_send.send("".to_string()).unwrap(); + load_send.send(String::new()).unwrap(); } + } else { + load_send.send(String::new()).unwrap(); } } WaylandRequest::Store(seat_name, contents) => {