Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint fix rust 1.8.4 #1482

Merged
merged 2 commits into from
Jan 9, 2025
Merged

Conversation

cameronvoell
Copy link
Contributor

No description provided.

@cameronvoell cameronvoell marked this pull request as ready for review January 9, 2025 19:25
@cameronvoell cameronvoell requested a review from a team as a code owner January 9, 2025 19:25
@@ -456,7 +456,7 @@ struct ExpectedDiff {
/// [`GroupMembership`] and the [`GroupMembership`] found in the [`StagedCommit`].
/// This requires loading the Inbox state from the network.
/// Satisfies Rule 2
async fn extract_expected_diff<'diff>(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lifetime isn't used

Copy link
Contributor

@codabrink codabrink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less explicit lifetimes. This is awesome 👍

@cameronvoell cameronvoell force-pushed the cv/01-09-lint_fix_rust_1.8.4 branch from 631bd11 to 988a468 Compare January 9, 2025 19:30
Copy link
Contributor Author

cameronvoell commented Jan 9, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@cameronvoell cameronvoell changed the base branch from main to cv/revert-push-commit January 9, 2025 19:31
&self,
conn: &DbConnection,
inbox_id: InboxIdRef<'a>,
inbox_id: InboxIdRef<'_>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
inbox_id: InboxIdRef<'_>,
inbox_id: InboxIdRef,

Would this work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without the anonymous lifetime it gives a compiler error:

implicit elided lifetime not allowed here
expected lifetime parameterrustc[Click for full compiler diagnostic](rust-analyzer-diagnostics-view:/diagnostic%20message%20%5B0%5D?0#file%3A%2F%2F%2FUsers%2Fcameronvoell%2FXMTP%2Flibxmtp%2Fxmtp_mls%2Fsrc%2Fgroups%2Fscoped_client.rs)
scoped_client.rs(390, 29): indicate the anonymous lifetime: `<'_>`

@cameronvoell cameronvoell merged commit 75db074 into cv/revert-push-commit Jan 9, 2025
11 checks passed
@cameronvoell cameronvoell deleted the cv/01-09-lint_fix_rust_1.8.4 branch January 9, 2025 19:35
cameronvoell added a commit that referenced this pull request Jan 9, 2025
* revert 404e996

* lint fix rust 1.8.4 (#1482)

Co-authored-by: cameronvoell <[email protected]>

---------

Co-authored-by: cameronvoell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants