mirror of
https://github.com/fafhrd91/actix-web
synced 2025-09-02 01:31:57 +02:00
improve code readability
This commit is contained in:
@@ -539,7 +539,7 @@ mod tests {
|
||||
.into_parts();
|
||||
let res = HttpMessageBody::new(&req, &mut pl).await;
|
||||
match res.err().unwrap() {
|
||||
PayloadError::UnknownLength => (),
|
||||
PayloadError::UnknownLength => {},
|
||||
_ => unreachable!("error"),
|
||||
}
|
||||
|
||||
@@ -548,7 +548,7 @@ mod tests {
|
||||
.into_parts();
|
||||
let res = HttpMessageBody::new(&req, &mut pl).await;
|
||||
match res.err().unwrap() {
|
||||
PayloadError::Overflow => (),
|
||||
PayloadError::Overflow => {},
|
||||
_ => unreachable!("error"),
|
||||
}
|
||||
|
||||
@@ -563,7 +563,7 @@ mod tests {
|
||||
.to_http_parts();
|
||||
let res = HttpMessageBody::new(&req, &mut pl).limit(5).await;
|
||||
match res.err().unwrap() {
|
||||
PayloadError::Overflow => (),
|
||||
PayloadError::Overflow => {},
|
||||
_ => unreachable!("error"),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user