heroku / buildpacks-python

Heroku's Cloud Native Buildpack for Python applications.
BSD 3-Clause "New" or "Revised" License
26 stars 2 forks source link

Fix lint errors with Rust 1.78 beta #184

Closed edmorley closed 5 months ago

edmorley commented 5 months ago

Fixes this lint error I get locally with Rust 1.78 beta:

error: lint group `pedantic` has the same priority (0) as a lint
  --> Cargo.toml:15:1
   |
15 | pedantic = "warn"
   | ^^^^^^^^   ------ has an implicit priority of 0
16 | unwrap_used = "warn"
   | ----------- has the same priority as this lint
   |
   = note: the order of the lints in the table is ignored by Cargo
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
   = note: `#[deny(clippy::lint_groups_priority)]` on by default
help: to have lints override the group set `pedantic` to a lower priority
   |
15 | pedantic = { level = "warn", priority = -1 }
   |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

See: https://rust-lang.github.io/rust-clippy/master/index.html#/lint_groups_priority https://github.com/rust-lang/rust-clippy/pull/11832 https://github.com/rust-lang/cargo/issues/12918 https://github.com/rust-lang/cargo/issues/13565

GUS-W-15303120.