File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl Pool {
36
36
pub fn create_buffer_from_str ( & mut self , str : & str ) -> Option < TemporaryBuffer > {
37
37
let mut buffer = self . create_buffer ( str. len ( ) ) ?;
38
38
unsafe {
39
- let mut buf = buffer. as_ngx_buf_mut ( ) ;
39
+ let buf = buffer. as_ngx_buf_mut ( ) ;
40
40
ptr:: copy_nonoverlapping ( str. as_ptr ( ) , ( * buf) . pos , str. len ( ) ) ;
41
41
( * buf) . last = ( * buf) . pos . add ( str. len ( ) ) ;
42
42
}
Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ impl Request {
341
341
} ;
342
342
343
343
// previously call of ngx_http_subrequest() would ensure that the pointer is not null anymore
344
- let mut sr = unsafe { & mut * psr } ;
344
+ let sr = unsafe { & mut * psr } ;
345
345
346
346
/*
347
347
* allocate fake request body to avoid attempts to read it and to make
Original file line number Diff line number Diff line change @@ -199,9 +199,9 @@ mod tests {
199
199
let mock = MockLog { log_level : 16 } ;
200
200
201
201
let mut r = check_mask ( DebugMask :: Core , mock. log_level ) ;
202
- assert ! ( r == true ) ;
202
+ assert ! ( r) ;
203
203
204
204
r = check_mask ( DebugMask :: Alloc , mock. log_level ) ;
205
- assert ! ( r == false ) ;
205
+ assert ! ( !r ) ;
206
206
}
207
207
}
You can’t perform that action at this time.
0 commit comments