Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Dec 19, 2024
1 parent cc29fd8 commit a05caa8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .changeset/thirty-spies-hug.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@builder.io/qwik": patch
'@builder.io/qwik': patch
---

FIX: click-to-component works again, and path handling inside the optimizer is simplified
2 changes: 1 addition & 1 deletion packages/qwik/src/optimizer/core/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ pub fn parse_path(src: &str) -> Result<PathData, Error> {
.parent()
.unwrap()
.file_name()
.unwrap_or(OsStr::new(""))
.unwrap_or_else(|| OsStr::new(""))
.to_string_lossy()
.to_string(),
extension: extension.into(),
Expand Down
6 changes: 3 additions & 3 deletions packages/qwik/src/optimizer/core/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ impl<'a> QwikTransform<'a> {
];
let fn_callee = if self.options.mode == EmitMode::Dev {
args.push(get_qrl_dev_obj(
JsWord::from(self.options.path_data.src.clone()),
self.options.path_data.src.clone(),
segment_data,
span,
));
Expand Down Expand Up @@ -1017,7 +1017,7 @@ impl<'a> QwikTransform<'a> {

let fn_callee = if self.options.mode == EmitMode::Dev {
args.push(get_qrl_dev_obj(
JsWord::from(self.options.path_data.src.clone()),
self.options.path_data.src.clone(),
&segment_data,
&span,
));
Expand Down Expand Up @@ -1665,7 +1665,7 @@ impl<'a> QwikTransform<'a> {
let mut fn_name: &JsWord = &_NOOP_QRL;
if self.options.mode == EmitMode::Dev {
args.push(get_qrl_dev_obj(
JsWord::from(self.options.path_data.src.clone()),
self.options.path_data.src.clone(),
&segment_data,
&DUMMY_SP,
));
Expand Down

0 comments on commit a05caa8

Please sign in to comment.