Skip to content

Add Clippy checks to the travis script #42

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

Merged
merged 12 commits into from
Jun 23, 2017
Merged

Add Clippy checks to the travis script #42

merged 12 commits into from
Jun 23, 2017

Conversation

stanislav-tkach
Copy link
Contributor

@stanislav-tkach stanislav-tkach commented Jun 22, 2017

Closes #38.

@stanislav-tkach stanislav-tkach self-assigned this Jun 22, 2017
Copy link
Contributor

@dmitry-timofeev dmitry-timofeev left a comment

Choose a reason for hiding this comment

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

Я так понимаю, это значит "clippy, молчи, тут нужно передавать по значению":
[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]

Можно ли это сделать на уровне файла, если там одни JNI функции? Или так ты можешь потерять полезные сообщения clippy?

@stanislav-tkach
Copy link
Contributor Author

Right, it is needed to disable some checks and you give me even a better idea: this warning can be disabled for the whole project and enabled only for the utils module.

@stanislav-tkach
Copy link
Contributor Author

stanislav-tkach commented Jun 22, 2017

Finally ready for review. 😅

@dmitry-timofeev
Copy link
Contributor

the less annotations, the better :-)

Copy link
Contributor

@dmitry-timofeev dmitry-timofeev left a comment

Choose a reason for hiding this comment

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

Am I right that a nightly version of Rust is required to run clippy?

@stanislav-tkach
Copy link
Contributor Author

Unfortunately, yes. Clippy uses unstable language features that are available only in the nightly builds.

@diminio1 diminio1 merged commit 26a3dde into exonum:master Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants