remove many unwrap and enum_value_or_default
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
31b3c5d721
commit
aa740f4263
26 changed files with 345 additions and 191 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue