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 a handful of lints, one of which was breaking the build #65

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Jun 29, 2021

This branch fixes a number of lints. The most important one was the use
of a non-format_args! expression in a panic! macro, which generates
a compiler warning in recent Rust toolchains, which is breaking the CI
cargo check run on PR #64.

While I was here, I also fixed some miscellaneous Clippy lints, mostly
in tests. These include:

  • Use of clone() on SocketAddrs (which implement Copy)
  • Unnecessary single-path-segment imports (which probably used to be
    extern crates in earlier Rust?)
  • 'static lifetimes in const type annotations (consts always have
    the 'static lifetime)

None of these were breaking the build on CI, but I figured I'd address
them while I was fixing other lints.

This fixes a compiler warning in recent Rust toolchains, which is
breaking the CI `cargo check` run.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This fixes some miscellaneous Clippy lints, mostly in tests. These
include:

* Use of `clone()` on `SocketAddr`s (which implement `Copy`)
* Unnecessary single-path-segment imports (which probably used to be
  `extern crate`s in earlier Rust?)
* `'static` lifetimes in `const` type annotations (`const`s always have
  the `'static` lifetime)

None of these were breaking the build on CI, but I figured I'd address
them while I was fixing other lints.
@hawkw hawkw merged commit db01bce into master Jun 29, 2021
@taiki-e taiki-e deleted the eliza/lints branch July 9, 2022 09:04
Noah-Kennedy added a commit that referenced this pull request Feb 4, 2023
Closes #126.

# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream<S> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#65]: #74
[#65]: #93
[#65]: #125
Noah-Kennedy added a commit that referenced this pull request Feb 4, 2023
Closes #126.

# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream<S> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#74]: #74
[#93]: #93
[#125]: #125
Noah-Kennedy added a commit that referenced this pull request Feb 4, 2023
Closes #126.

# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream\<S\> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#74]: #74
[#93]: #93
[#125]: #125
Noah-Kennedy added a commit that referenced this pull request Feb 4, 2023
# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream\<S\> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#74]: #74
[#93]: #93
[#125]: #125
Noah-Kennedy added a commit that referenced this pull request Feb 7, 2023
# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream\<S\> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#74]: #74
[#93]: #93
[#125]: #125
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.

None yet

2 participants