diff --git a/src/server/mod.rs b/src/server/mod.rs index 814de7a..c95307d 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -844,8 +844,8 @@ impl Server { } match channel { - // TODO: "REGISTER" => - // TODO: "UNREGISTER" => + "REGISTER" => {} // TODO + "UNREGISTER" => {} // TODO "FML|HS" => { let msg = crate::protocol::Serializable::read_from(&mut std::io::Cursor::new(data)) .unwrap(); diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 0091a62..4b43a35 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -1539,9 +1539,8 @@ impl UIElement for TextBox { (VirtualKeyCode::V, true) => { if ctrl_pressed { let mut clipboard: ClipboardContext = ClipboardProvider::new().unwrap(); - match clipboard.get_contents() { - Ok(text) => self.input.push_str(&text), - Err(_) => (), + if let Ok(text) = clipboard.get_contents() { + self.input.push_str(&text) } } }