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

Fix clippy:wrong_self_convention #256

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Apr 13, 2021

CI on master currently fails due to this:
https://gitlab.parity.io/parity/cargo-contract/-/jobs/894585

error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
  --> src/workspace/profile.rs:75:22
   |
75 |     fn to_toml_value(&self) -> value::Value {
   |                      ^^^^^
   |
   = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
   = help: consider choosing a less ambiguous name
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention

error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
   --> src/workspace/profile.rs:102:22
    |
102 |     fn to_toml_value(&self) -> value::Value {
    |                      ^^^^^
    |
    = help: consider choosing a less ambiguous name
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention

error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
   --> src/workspace/profile.rs:121:22
    |
121 |     fn to_toml_value(&self) -> value::Value {
    |                      ^^^^^
    |
    = help: consider choosing a less ambiguous name
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
@cmichi cmichi requested a review from ascjones April 13, 2021 07:47
@ascjones ascjones merged commit a8c8589 into master Apr 13, 2021
@ascjones ascjones deleted the cmichi-fix-nightly-clippy-errors-042 branch April 13, 2021 08:33
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.

2 participants