Skip to content

Commit 6fd696e

Browse files
authored
test(upgrade): fix compilation in Upgrade tests without features (#3403)
1 parent c22fc07 commit 6fd696e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/common/io/rewind.rs

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ where
106106
}
107107
}
108108

109+
#[cfg(all(
110+
any(feature = "client", feature = "server"),
111+
any(feature = "http1", feature = "http2"),
112+
))]
109113
#[cfg(test)]
110114
mod tests {
111115
use super::super::Compat;

src/upgrade.rs

+4
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ mod sealed {
345345
}
346346
}
347347

348+
#[cfg(all(
349+
any(feature = "client", feature = "server"),
350+
any(feature = "http1", feature = "http2"),
351+
))]
348352
#[cfg(test)]
349353
mod tests {
350354
use super::*;

0 commit comments

Comments
 (0)