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

fixed most clippy lints + cargo fmt #14

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

Witcher01
Copy link
Contributor

most lints were due to Vec's being instantiated and items being
immediately pushed to them, instead of using the vec! macro.
also fixed manual slicing of a prefix via the strip_prefix method.

missing lints:

  • parse_hex_16 is never used
    (main.rs:9:4)
  • handle.read(&mut buf) returns a Result that is never used
    (annepro2.rs:226:5)

also formatted the source code with cargo fmt.

most were due to Vec's being instantiated and items being immediately
pushed to them, instead of using the `vec!` macro.
also fixed manual slicing of a prefix via the `strip_prefix` method.

missing lints:
- `parse_hex_16` is never used
  (main.rs:9:4)
- `handle.read(&mut buf)` returns a `Result` that is never used
  (annepro2.rs:226:5)
Copy link
Contributor

@Codetector1374 Codetector1374 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Codetector1374 Codetector1374 merged commit bfbfbf4 into OpenAnnePro:master Nov 10, 2021
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