File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ impl TryFrom<Compression> for tonic::codec::CompressionEncoding {
54
54
#[ cfg( not( feature = "gzip-tonic" ) ) ]
55
55
Compression :: Gzip => Err ( crate :: Error :: FeatureRequiredForCompressionAlgorithm (
56
56
"gzip-tonic" ,
57
- "gzip" ,
57
+ Compression :: Gzip ,
58
58
) ) ,
59
59
#[ cfg( feature = "zstd-tonic" ) ]
60
60
Compression :: Zstd => Ok ( tonic:: codec:: CompressionEncoding :: Zstd ) ,
61
61
#[ cfg( not( feature = "zstd-tonic" ) ) ]
62
62
Compression :: Zstd => Err ( crate :: Error :: FeatureRequiredForCompressionAlgorithm (
63
63
"zstd-tonic" ,
64
- "zstd" ,
64
+ Compression :: Zstd ,
65
65
) ) ,
66
66
}
67
67
}
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ pub enum Error {
377
377
/// Feature required to use the specified compression algorithm.
378
378
#[ cfg( any( not( feature = "gzip-tonic" ) , not( feature = "zstd-tonic" ) ) ) ]
379
379
#[ error( "feature '{0}' is required to use the compression algorithm '{1}'" ) ]
380
- FeatureRequiredForCompressionAlgorithm ( & ' static str , & ' static str ) ,
380
+ FeatureRequiredForCompressionAlgorithm ( & ' static str , Compression ) ,
381
381
}
382
382
383
383
#[ cfg( feature = "grpc-tonic" ) ]
You can’t perform that action at this time.
0 commit comments