File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
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 ; use std:: path:: PathBuf ;
10+ use std:: collections:: HashMap ;
11+ use std:: path:: PathBuf ;
1112
1213/// RAII guard to ensure test files are cleaned up even if the test panics
1314///
@@ -25,7 +26,7 @@ pub struct TempFileGuard(PathBuf);
2526impl TempFileGuard {
2627 /// Create a new temp file guard for the given path
2728 pub fn new ( path : PathBuf ) -> Self {
28- Self ( path )
29+ Self ( path)
2930 }
3031}
3132
@@ -147,8 +148,10 @@ pub fn parse_http_request(data: &[u8]) -> anyhow::Result<HttpRequest> {
147148 } ;
148149
149150 Ok ( HttpRequest {
150- method, path,
151- headers, body,
151+ method,
152+ path,
153+ headers,
154+ body,
152155 multipart_parts,
153156 } )
154157}
You can’t perform that action at this time.
0 commit comments