Skip to content

Conversation

yharaskrik
Copy link

Fixes failing CI for: #802

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.

Once this is merged the SWC update branch can be rebased and should pass then we can get swc updated!

…nfo return type

Rust CI is failing to build jscutlery#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant