File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 77//! including file cleanup, HTTP parsing, and temp file management.
88
99use anyhow:: Context ;
10- use std:: collections:: HashMap ;
11- use std:: path:: PathBuf ;
10+ use std:: collections:: HashMap ; use std:: path:: PathBuf ;
1211
1312/// RAII guard to ensure test files are cleaned up even if the test panics
1413///
@@ -26,7 +25,7 @@ pub struct TempFileGuard(PathBuf);
2625impl TempFileGuard {
2726 /// Create a new temp file guard for the given path
2827 pub fn new ( path : PathBuf ) -> Self {
29- Self ( path)
28+ Self ( path )
3029 }
3130}
3231
@@ -148,10 +147,8 @@ pub fn parse_http_request(data: &[u8]) -> anyhow::Result<HttpRequest> {
148147 } ;
149148
150149 Ok ( HttpRequest {
151- method,
152- path,
153- headers,
154- body,
150+ method, path,
151+ headers, body,
155152 multipart_parts,
156153 } )
157154}
You can’t perform that action at this time.
0 commit comments