Skip to content

Commit

Permalink
Don't require unused features of hyper-rustls (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd authored Sep 18, 2024
1 parent 5ccae0b commit 9662a6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ jobs:
- run: cargo clippy --version
- run: cargo clippy
- run: cargo clippy --all-targets --no-default-features
- run: cargo build --all-targets --features native-tls
- run: cargo build --all-targets --features rustls-tls
- run: cargo build --all-targets --features rustls-tls-aws
- run: cargo clippy --all-targets --features native-tls
- run: cargo clippy --all-targets --features rustls-tls
- run: cargo clippy --all-targets --features rustls-tls-aws
- run: cargo clippy --all-targets --all-features

test:
Expand Down
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ hyper-tls = { version = "0.6.0", optional = true }
rustls = { version = "0.23", default-features = false, optional = true }
hyper-rustls = { version = "0.27.2", default-features = false, features = [
"http1",
"http2",
"native-tokio",
"tls12",
"webpki-roots",
], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/compression/lz4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl<S> Lz4Decoder<S> {

fn calc_checksum(buffer: &[u8]) -> u128 {
let hash = cityhash_102_128(buffer);
hash << 64 | hash >> 64
hash.rotate_right(64)
}

fn decompress(compressed: &[u8], uncompressed: &mut [u8]) -> Result<usize> {
Expand Down

0 comments on commit 9662a6e

Please sign in to comment.