Skip to content

Commit ef66a14

Browse files
committed
suppress more warnings
1 parent 720cffb commit ef66a14

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ jobs:
110110
toolchain: ${{ matrix.toolchain }}
111111
target: ${{ matrix.target }}
112112
- run: cargo test --features ${{ matrix.features }} --target ${{ matrix.target }}
113+
env: #[cfg(feature = "datagram")] unexpected `cfg` condition value: `datagram`
114+
RUSTFLAGS: "-A unexpected_cfgs"
113115
- name: h3Spec
114116
run: ./ci/h3spec.sh
115117
if: matrix.toolchain == 'stable'

h3-webtransport/src/server.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ where
368368
/// An accepted incoming bidirectional stream.
369369
///
370370
/// Since
371+
#[allow(clippy::large_enum_variant)]
371372
pub enum AcceptedBi<C: quic::Connection<B>, B: Buf> {
372373
/// An incoming bidirectional stream
373374
BidiStream(SessionId, BidiStream<C::BidiStream, B>),

h3/src/proto/coding.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ impl Decode for u8 {
3636
}
3737

3838
pub trait BufExt {
39+
#[allow(dead_code)]
3940
fn get<T: Decode>(&mut self) -> Result<T>;
41+
#[allow(dead_code)]
4042
fn get_var(&mut self) -> Result<u64>;
4143
}
4244

@@ -51,7 +53,9 @@ impl<T: Buf> BufExt for T {
5153
}
5254

5355
pub trait BufMutExt {
56+
#[allow(dead_code)]
5457
fn write<T: Encode>(&mut self, x: T);
58+
#[allow(dead_code)]
5559
fn write_var(&mut self, x: u64);
5660
}
5761

h3/src/proto/varint.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ impl fmt::Display for VarInt {
180180
}
181181

182182
pub trait BufExt {
183+
#[allow(dead_code)]
183184
fn get_var(&mut self) -> Result<u64, UnexpectedEnd>;
184185
}
185186

@@ -190,6 +191,7 @@ impl<T: Buf> BufExt for T {
190191
}
191192

192193
pub trait BufMutExt {
194+
#[allow(dead_code)]
193195
fn write_var(&mut self, x: u64);
194196
}
195197

h3/src/server/request.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ where
6666
{
6767
/// Returns a future to await the request headers and return a `Request` object
6868
#[cfg_attr(feature = "tracing", instrument(skip_all, level = "trace"))]
69+
#[allow(clippy::type_complexity)]
6970
pub async fn resolve_request(
7071
mut self,
7172
) -> Result<(Request<()>, RequestStream<C::BidiStream, B>), StreamError> {
@@ -192,6 +193,7 @@ where
192193

193194
/// Finishes the resolution of the request
194195
#[cfg_attr(feature = "tracing", instrument(skip_all, level = "trace"))]
196+
#[allow(clippy::type_complexity)]
195197
pub async fn resolve(
196198
mut self,
197199
) -> Result<(Request<()>, RequestStream<C::BidiStream, B>), StreamError> {

0 commit comments

Comments
 (0)