File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,14 @@ pub fn generate<T: Service>(
82
82
///
83
83
/// This requires the server to support it otherwise it might respond with an
84
84
/// error.
85
+ #[ must_use]
85
86
pub fn send_gzip( mut self ) -> Self {
86
87
self . inner = self . inner. send_gzip( ) ;
87
88
self
88
89
}
89
90
90
91
/// Enable decompressing responses with `gzip`.
92
+ #[ must_use]
91
93
pub fn accept_gzip( mut self ) -> Self {
92
94
self . inner = self . inner. accept_gzip( ) ;
93
95
self
Original file line number Diff line number Diff line change @@ -50,12 +50,14 @@ pub fn generate<T: Service>(
50
50
let configure_compression_methods = if compression_enabled {
51
51
quote ! {
52
52
/// Enable decompressing requests with `gzip`.
53
+ #[ must_use]
53
54
pub fn accept_gzip( mut self ) -> Self {
54
55
self . accept_compression_encodings. enable_gzip( ) ;
55
56
self
56
57
}
57
58
58
59
/// Compress responses with `gzip`, if the client supports it.
60
+ #[ must_use]
59
61
pub fn send_gzip( mut self ) -> Self {
60
62
self . send_compression_encodings. enable_gzip( ) ;
61
63
self
You can’t perform that action at this time.
0 commit comments