mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
fix more clippy warnings
This commit is contained in:
parent
aabdf76a5d
commit
561cc3db55
16 changed files with 83 additions and 106 deletions
|
|
@ -179,7 +179,7 @@ impl Request {
|
|||
|
||||
for equal_sign_index in ::memchr::memchr_iter(b'=', query_string_bytes){
|
||||
let segment_end = ampersand_iter.next()
|
||||
.unwrap_or(query_string.len());
|
||||
.unwrap_or_else(|| query_string.len());
|
||||
|
||||
let key = query_string.get(position..equal_sign_index)
|
||||
.with_context(|| format!("no key at {}..{}", position, equal_sign_index))?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue