Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: feature flag Datagram::into_data (#1695)
* feat(.github): run cargo clippy on each crate individually > Use cargo-hack to run clippy on each crate individually with its > respective default features only. Can reveal warnings otherwise > hidden given that a plain cargo clippy combines all features of the > workspace. See e.g. #1695. * fix: feature flag Datagram::into_data `Datagram::into_data` is used in `neqo_common::udp` only. `neqo_common::udp` is behind the `udp` feature. The feature is not part of the crate's default features. Thus a plain `cargo check` rightly complains with: ``` warning: method `into_data` is never used --> neqo-common/src/datagram.rs:58:19 | 20 | impl Datagram { | ------------- method in this implementation ... 58 | pub(crate) fn into_data(self) -> Vec<u8> { | ^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default ``` This commit hides `into_data` behind the `udp` feature as well. * Install cargo-hack as part of 'Install Rust tools'
- Loading branch information