Skip to content

Commit b1a5ef0

Browse files
committed
WIP pushing format changes to trigger action
1 parent 103cc31 commit b1a5ef0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

libdd-common/src/test_utils.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//! including file cleanup, HTTP parsing, and temp file management.
88
99
use 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);
2625
impl 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
}

0 commit comments

Comments
 (0)