mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 08:34:12 +00:00
remove many unwrap and enum_value_or_default
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
1 parent
31b3c5d721
commit
aa740f4263
26 files changed
+345
-191
No files matched your search
+1
-1
@@ -377,7 +377,7 @@ impl sciter::EventHandler for SciterSession {
|
||||
let source = Element::from(source);
|
||||
use sciter::dom::ELEMENT_AREAS;
|
||||
let flags = ELEMENT_AREAS::CONTENT_BOX as u32 | ELEMENT_AREAS::SELF_RELATIVE as u32;
|
||||
let rc = source.get_location(flags).unwrap();
|
||||
let rc = source.get_location(flags).unwrap_or_default();
|
||||
log::debug!(
|
||||
"[video] start video thread on <{}> which is about {:?} pixels",
|
||||
source,
|
||||
|
||||
Reference in new issue
Block a user