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

Remove redundant import and dead code #96

Merged
merged 2 commits into from
Mar 17, 2024
Merged

Remove redundant import and dead code #96

merged 2 commits into from
Mar 17, 2024

Conversation

taiki-e
Copy link
Collaborator

@taiki-e taiki-e commented Mar 17, 2024

Fix warnings newly triggered by recent compilers. See commit messages for the actual contents of warnings.

```
warning: the item `From` is imported redundantly
   --> src/error.rs:1:5
    |
1   | use std::convert::From;
    |     ^^^^^^^^^^^^^^^^^^
    |
   ::: /Users/taiki/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:115:13
    |
115 |     pub use super::v1::*;
    |             --------- the item `From` is already defined here
    |
    = note: `#[warn(unused_imports)]` on by default
```
```
warning: field `0` is never read
   --> src/expand.rs:316:12
    |
316 |     Update(Vec<u8>),
    |     ------ ^^^^^^^
    |     |
    |     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
    |
316 |     Update(()),
    |            ~~
```
@eupn eupn merged commit bc3bd2a into eupn:master Mar 17, 2024
9 checks passed
@taiki-e taiki-e deleted the warning branch March 17, 2024 12:45
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