@@ -112,7 +112,7 @@ pub trait Handler {
112
112
/// `transfer` method and then using `read_function` to configure a
113
113
/// callback that can reference stack-local data.
114
114
fn read ( & mut self , data : & mut [ u8 ] ) -> Result < usize , ReadError > {
115
- drop ( data) ;
115
+ let _ = data; // ignore unused
116
116
Ok ( 0 )
117
117
}
118
118
@@ -136,7 +136,7 @@ pub trait Handler {
136
136
/// By default data this option is not set, and this corresponds to the
137
137
/// `CURLOPT_SEEKFUNCTION` and `CURLOPT_SEEKDATA` options.
138
138
fn seek ( & mut self , whence : SeekFrom ) -> SeekResult {
139
- drop ( whence) ;
139
+ let _ = whence; // ignore unused
140
140
SeekResult :: CantSeek
141
141
}
142
142
@@ -186,7 +186,7 @@ pub trait Handler {
186
186
/// By default this option is not set and corresponds to the
187
187
/// `CURLOPT_HEADERFUNCTION` and `CURLOPT_HEADERDATA` options.
188
188
fn header ( & mut self , data : & [ u8 ] ) -> bool {
189
- drop ( data) ;
189
+ let _ = data; // ignore unused
190
190
true
191
191
}
192
192
@@ -222,7 +222,7 @@ pub trait Handler {
222
222
/// By default this function calls an internal method and corresponds to
223
223
/// `CURLOPT_PROGRESSFUNCTION` and `CURLOPT_PROGRESSDATA`.
224
224
fn progress ( & mut self , dltotal : f64 , dlnow : f64 , ultotal : f64 , ulnow : f64 ) -> bool {
225
- drop ( ( dltotal, dlnow, ultotal, ulnow) ) ;
225
+ let _ = ( dltotal, dlnow, ultotal, ulnow) ; // ignore unused
226
226
true
227
227
}
228
228
0 commit comments