Skip to content

Commit dad78bf

Browse files
authored
chore(test): Resolve unused import warning without compression feature (#2101)
1 parent 40fb659 commit dad78bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tonic/src/codec/compression.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ pub enum SingleMessageCompressionOverride {
282282

283283
#[cfg(test)]
284284
mod tests {
285+
#[cfg(any(feature = "gzip", feature = "zstd"))]
285286
use http::HeaderValue;
286287

287288
use super::*;

0 commit comments

Comments
 (0)