-
Notifications
You must be signed in to change notification settings - Fork 23
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
lint fix rust 1.8.4 #1482
Conversation
@@ -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>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lifetime isn't used
There was a problem hiding this 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 👍
631bd11
to
988a468
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. |
&self, | ||
conn: &DbConnection, | ||
inbox_id: InboxIdRef<'a>, | ||
inbox_id: InboxIdRef<'_>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inbox_id: InboxIdRef<'_>, | |
inbox_id: InboxIdRef, |
Would this work?
There was a problem hiding this comment.
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: `<'_>`
* revert 404e996 * lint fix rust 1.8.4 (#1482) Co-authored-by: cameronvoell <[email protected]> --------- Co-authored-by: cameronvoell <[email protected]>
No description provided.