mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 16:38:17 +00:00
upgrade bytes to 1.2
This commit is contained in:
1 parent
6db3a2e85c
commit
16b7c7c716
7 files changed
+9
-9
No files matched your search
+1
-1
@@ -79,7 +79,7 @@ pub fn update_clipboard(clipboard: Clipboard, old: Option<&Arc<Mutex<String>>>)
|
||||
let content = if clipboard.compress {
|
||||
decompress(&clipboard.content)
|
||||
} else {
|
||||
clipboard.content.as_ref().to_vec()
|
||||
clipboard.content.into()
|
||||
};
|
||||
if let Ok(content) = String::from_utf8(content) {
|
||||
if content.is_empty() {
|
||||
|
||||
Reference in new issue
Block a user