Skip to content

Commit

Permalink
autofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 3, 2024
1 parent 93a0082 commit a7a4cb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/quickjs_utils/arrays.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ pub unsafe fn set_element(
index: u32,
entry_value_ref: &QuickJsValueAdapter,
) -> Result<(), JsError> {

let ret = q::JS_DefinePropertyValueUint32(
context,
*array_ref.borrow_value(),
Expand Down
5 changes: 1 addition & 4 deletions src/reflection/eventtarget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ where
C: FnOnce(&mut HashMap<QuickJsValueAdapter, QuickJsValueAdapter>) -> R,
{
with_proxy_instances_map_mut(q_ctx, proxy_class_name, |proxy_instance_map| {
let event_id_map = proxy_instance_map
.entry(instance_id)
.or_default();
let event_id_map = proxy_instance_map.entry(instance_id).or_default();

if !event_id_map.contains_key(event_id) {
event_id_map.insert(event_id.to_string(), HashMap::new());
Expand Down Expand Up @@ -552,7 +550,6 @@ unsafe extern "C" fn ext_dispatch_static_event(
let res =
dispatch_static_event(q_ctx, proxy_name.as_str(), event_id.as_str(), evt_obj)?;


Ok(res)
}
});
Expand Down

0 comments on commit a7a4cb1

Please sign in to comment.