Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrieshiemstra committed Jan 3, 2024
1 parent fbb7277 commit 438c4ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ unsafe fn parse_line(ctx: *mut q::JSContext, args: Vec<QuickJsValueAdapter>) ->

output.push_str("JS_REALM:");
QuickJsRealmAdapter::with_context(ctx, |realm| {
output.push_str("[");
output.push('[');
output.push_str(realm.id.as_str());
output.push_str("][");
if let Ok(script_or_module_name) = quickjs_utils::get_script_or_module_name_q(realm) {
Expand Down
4 changes: 4 additions & 0 deletions src/reflection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ pub fn get_proxy_instance_id_q(
}
}

/// Get the instance id of a proxy instance
/// # Safety
/// please make sure context is still valid
pub unsafe fn get_proxy_instance_id(
ctx: *mut libquickjs_sys::JSContext,
obj: &QuickJsValueAdapter,
Expand All @@ -736,6 +739,7 @@ pub unsafe fn get_proxy_instance_id(
}
}


pub fn is_proxy_instance_q(q_ctx: &QuickJsRealmAdapter, obj: &QuickJsValueAdapter) -> bool {
unsafe { is_proxy_instance(q_ctx.context, obj) }
}
Expand Down

0 comments on commit 438c4ee

Please sign in to comment.