Skip to content

Commit 74d5e76

Browse files
Format Rust code using rustfmt
1 parent a3db3f7 commit 74d5e76

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

libdd-common/src/test_utils.rs

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

0 commit comments

Comments
 (0)