-
Notifications
You must be signed in to change notification settings - Fork 230
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
Upgrade rust to 1.57 #4723
Upgrade rust to 1.57 #4723
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4723 +/- ##
=======================================
Coverage 80.53% 80.53%
=======================================
Files 48 48
Lines 5220 5220
=======================================
Hits 4204 4204
Misses 1016 1016
Continue to review full report at Codecov.
|
} | ||
|
||
#[derive(Default, Debug, Clone)] | ||
struct LegacyPlace { | ||
id: i64, | ||
guid: String, |
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.
there's not alot of value here, but I think this is reading a desktop places row, which possibly has some value? Maybe add a leading underscore on the names (and a comment about why?) I'm assuming this is what is described in rust-lang/rust#81658, and that's one of the suggestions there?)
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.
I think I have a slight preference for commenting out fields like this rather than deleting it, adding the underscore, or adding the #[allow(dead_code)]
annotation. This seems like a nice way to indicate that the fields are present in the source data in case we want to use them some time in the future. That said, I'm fine with any of the solutions.
that new dead_code check is unfortunate :( But we can't just stay on the old rust, so we have to do something. I'm fine with this, but I'll leave it for others to weigh in and approve and/or suggest changes. |
Was the |
Yeah, it's stuff like application-services/components/places/src/storage/bookmarks.rs Lines 2113 to 2127 in 021e649
I'm not too sure about all that's going on there, but the |
huh - so in that particular example, it looks like the |
I guess for that particular case, a |
👀 👀 👀 Love the idea!! I'll give it a shot |
194b668
to
dba37aa
Compare
184c70f
to
3411f1a
Compare
3411f1a
to
b1dba83
Compare
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.
lgtm!
Upgrades rust to 1.57
The changes here were mechanical and based on rustc or clippy's recommendations...
Two main highlights:
Pull Request checklist
[ci full]
to the PR title.