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 lint errors with Rust 1.77 #812

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Mar 28, 2024

Fixes:

warning: field `0` is never read
  --> test-buildpacks/readonly-layer-files/src/main.rs:34:13
   |
34 |     IOError(std::io::Error),
   |     ------- ^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
34 |     IOError(()),
   |             ~~

warning: field `0` is never read
  --> test-buildpacks/sbom/src/main.rs:65:13
   |
65 |     IOError(std::io::Error),
   |     ------- ^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
65 |     IOError(()),
   |             ~~

warning: field `0` is never read
  --> test-buildpacks/store/src/main.rs:39:13
   |
39 |     IOError(std::io::Error),
   |     ------- ^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
39 |     IOError(()),
   |             ~~

warning: field `0` is never read
   --> libcnb/src/layer/tests.rs:959:13
    |
959 |     IoError(std::io::Error),
    |     ------- ^^^^^^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
959 |     IoError(()),
    |             ~~

GUS-W-15350320.

Fixes:

```
warning: field `0` is never read
  --> test-buildpacks/readonly-layer-files/src/main.rs:34:13
   |
34 |     IOError(std::io::Error),
   |     ------- ^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
34 |     IOError(()),
   |             ~~

warning: field `0` is never read
  --> test-buildpacks/sbom/src/main.rs:65:13
   |
65 |     IOError(std::io::Error),
   |     ------- ^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
65 |     IOError(()),
   |             ~~

warning: field `0` is never read
  --> test-buildpacks/store/src/main.rs:39:13
   |
39 |     IOError(std::io::Error),
   |     ------- ^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
39 |     IOError(()),
   |             ~~

warning: field `0` is never read
   --> libcnb/src/layer/tests.rs:959:13
    |
959 |     IoError(std::io::Error),
    |     ------- ^^^^^^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
959 |     IoError(()),
    |             ~~
```
@edmorley edmorley self-assigned this Mar 28, 2024
@edmorley edmorley marked this pull request as ready for review March 28, 2024 08:27
@edmorley edmorley requested a review from a team as a code owner March 28, 2024 08:27
@edmorley edmorley enabled auto-merge (squash) March 28, 2024 08:34
@edmorley edmorley merged commit 4d198b8 into main Mar 28, 2024
6 checks passed
@edmorley edmorley deleted the edmorley/fix-lint-rust-1.77 branch March 28, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants