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>(
8282 ///
8383 /// This requires the server to support it otherwise it might respond with an
8484 /// error.
85+ #[ must_use]
8586 pub fn send_gzip( mut self ) -> Self {
8687 self . inner = self . inner. send_gzip( ) ;
8788 self
8889 }
8990
9091 /// Enable decompressing responses with `gzip`.
92+ #[ must_use]
9193 pub fn accept_gzip( mut self ) -> Self {
9294 self . inner = self . inner. accept_gzip( ) ;
9395 self
Original file line number Diff line number Diff line change @@ -50,12 +50,14 @@ pub fn generate<T: Service>(
5050 let configure_compression_methods = if compression_enabled {
5151 quote ! {
5252 /// Enable decompressing requests with `gzip`.
53+ #[ must_use]
5354 pub fn accept_gzip( mut self ) -> Self {
5455 self . accept_compression_encodings. enable_gzip( ) ;
5556 self
5657 }
5758
5859 /// Compress responses with `gzip`, if the client supports it.
60+ #[ must_use]
5961 pub fn send_gzip( mut self ) -> Self {
6062 self . send_compression_encodings. enable_gzip( ) ;
6163 self
You can’t perform that action at this time.
0 commit comments