test(http1): fix non_fmt_panic warning (#2424)

This commit is contained in:
Taiki Endo
2021-02-07 00:20:01 +09:00
committed by GitHub
parent 196d9bd69c
commit 95ce96048c

View File

@@ -490,7 +490,7 @@ mod tests {
} }
}; };
if state == ChunkedState::Body || state == ChunkedState::End { if state == ChunkedState::Body || state == ChunkedState::End {
panic!(format!("Was Ok. Expected Err for {:?}", s)); panic!("Was Ok. Expected Err for {:?}", s);
} }
} }
} }