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

Update rust & clippy on CI #56

Closed
wants to merge 0 commits into from
Closed

Conversation

Hoverbear
Copy link
Contributor

As part of #55 the Nightly CI runs are failing due to using an old Rust version. With tikv/tikv#2922 merged we should bump this.

This PR updates the Rust and clippy version, and resolves the new clippy warnings.

@Hoverbear Hoverbear changed the title Update rust clippy on ci Update rust & clippy on CI Apr 19, 2018
@@ -74,22 +74,25 @@ impl Unstable {
// is any.
pub fn maybe_term(&self, idx: u64) -> Option<u64> {
if idx < self.offset {
if self.snapshot.is_none() {
return None;
match self.snapshot.as_ref() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Seem we used a Go style here before, and maybe this is a better Rust style.

PTAL @BusyJay

Copy link
Member

Choose a reason for hiding this comment

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

I think less indent is better is a common sense. Besides using ? is better here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using ? here aggravates the borrow checker.

Copy link
Contributor

Choose a reason for hiding this comment

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

aggravate? you mean it will reduce the performance?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It prevents compiling.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

any update @Hoverbear

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't see this, reflected.

@siddontang
Copy link
Contributor

LGTM

PTAL @BusyJay

BusyJay
BusyJay previously approved these changes May 9, 2018
@siddontang
Copy link
Contributor

please fix the conflict @Hoverbear

@Hoverbear
Copy link
Contributor Author

This was closed as part of #55

@tisonkun tisonkun deleted the update-rust-clippy-on-ci branch July 2, 2023 10:51
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