Commit 4b265a1
authored
fix(swc-angular-plugin): make lifetime explicit in parse_query_prop_info return type (#906)
Rust CI is failing to build #802. The function
`parse_query_prop_info` returned `AngularPropInfo` with an
elided lifetime, while the input `&ClassProp` provided the
borrow. This inconsistency triggered the lint.
Updated the return type to `AngularPropInfo<'_>` to explicitly
tie the lifetime of the returned value to the input borrow,
removing the warning and unifying local and CI builds.
This makes the lifetime contract explicit.1 parent fda2300 commit 4b265a1
File tree
1 file changed
+1
-1
lines changed- packages/swc-angular-plugin/src/component_property_visitor
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments