Skip to content

Commit

Permalink
test(upgrade): fix compilation in Upgrade tests without features (#3403)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar authored Nov 13, 2023
1 parent c22fc07 commit 6fd696e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/io/rewind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ where
}
}

#[cfg(all(
any(feature = "client", feature = "server"),
any(feature = "http1", feature = "http2"),
))]
#[cfg(test)]
mod tests {
use super::super::Compat;
Expand Down
4 changes: 4 additions & 0 deletions src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ mod sealed {
}
}

#[cfg(all(
any(feature = "client", feature = "server"),
any(feature = "http1", feature = "http2"),
))]
#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 6fd696e

Please sign in to comment.