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

Use old clippy attributes syntax #562

Merged

Conversation

stanislav-tkach
Copy link
Contributor

@stanislav-tkach stanislav-tkach commented Oct 25, 2018

As far as I can see, "old" syntax works both with nightly and stable clippy.

Closes #561.

@DoumanAsh
Copy link
Contributor

@fafhrd91 I don't use clippy at all, is it fine to update?

@mehcode
Copy link

mehcode commented Oct 26, 2018

The new syntax is stable in 1.30 which was released today.

@stanislav-tkach
Copy link
Contributor Author

@mehcode Unfortunately, it isn't that simple:

$ rustc --version
rustc 1.30.0 (da5f414c2 2018-10-24)
$ rustup --version
rustup 1.14.0 (1e51b07cc 2018-10-04)
$ cargo --version
cargo 1.30.0 (36d96825d 2018-10-24)
...
error[E0658]: scoped lint `clippy::needless_pass_by_value` is experimental (see issue #44690)

https://travis-ci.com/exonum/exonum/jobs/154392451#L2159

@mehcode
Copy link

mehcode commented Oct 26, 2018

Ah. I was confused because of rust-lang/rust#55331

Seems it won't be stable until 1.31

@codecov
Copy link

codecov bot commented Oct 28, 2018

Codecov Report

Merging #562 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #562   +/-   ##
=======================================
  Coverage   76.23%   76.23%           
=======================================
  Files         103      103           
  Lines       16825    16825           
=======================================
  Hits        12826    12826           
  Misses       3999     3999
Impacted Files Coverage Δ
src/httpresponse.rs 83.24% <ø> (ø) ⬆️
src/server/output.rs 67.96% <ø> (ø) ⬆️
src/server/http.rs 58.58% <ø> (ø) ⬆️
src/info.rs 92.78% <ø> (ø) ⬆️
src/server/h2writer.rs 47.79% <ø> (ø) ⬆️
src/ws/frame.rs 76.47% <ø> (ø) ⬆️
src/scope.rs 92.8% <ø> (ø) ⬆️
src/ws/mask.rs 89.83% <ø> (ø) ⬆️
src/client/writer.rs 69.63% <ø> (ø) ⬆️
src/middleware/defaultheaders.rs 72.97% <ø> (ø) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f91f5e...54c5256. Read the comment docs.

@DoumanAsh DoumanAsh merged commit 3b536ee into actix:master Nov 1, 2018
@DoumanAsh
Copy link
Contributor

@fafhrd91 I merged since old syntax should work with both versios

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.

4 participants