Skip to content

Commit

Permalink
chore(rust): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Mar 30, 2024
1 parent 04a6a76 commit 3e4dbf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/qwik/src/optimizer/core/benches/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ fn transform_todo_app(b: &mut Bencher) {
code: code.into(),
path: "file.tsx".into(),
}],
root_dir: None,
core_module: None,
source_maps: false,
explicit_extensions: false,
minify: MinifyMode::Simplify,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<'a> PropsDestructuring<'a> {
if let Some(ast::Pat::Object(obj)) = arrow.params.first() {
let new_ident = private_ident!("props");
if let Some((rest_id, local)) =
transform_pat(ast::Expr::Ident(new_ident.clone()), obj, self)
transform_pat(ast::Expr::Ident(new_ident.clone()), &obj, self)
{
if let Some(rest_id) = rest_id {
let omit_fn = self.global_collect.import(&_REST_PROPS, self.core_module);
Expand Down

0 comments on commit 3e4dbf4

Please sign in to comment.