Skip to content

Commit 120b052

Browse files
committed
rustfmt
1 parent 63d3b59 commit 120b052

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

nexus/src/app/background/tasks/support_bundle_collector.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,8 @@ async fn write_ereport(ereport: Ereport, dir: &Utf8Path) -> anyhow::Result<()> {
11771177
// Nexus doesn't have full control over --- it came from the ereport
11781178
// metadata --- we must check that it doesn't contain any characters
11791179
// unsuitable for use in a filesystem path.
1180-
let pn = ereport.data
1180+
let pn = ereport
1181+
.data
11811182
.part_number
11821183
.as_deref()
11831184
// If the part or serial numbers contain any unsavoury characters, it
@@ -1187,13 +1188,14 @@ async fn write_ereport(ereport: Ereport, dir: &Utf8Path) -> anyhow::Result<()> {
11871188
// giving up on using it in the path.
11881189
.filter(|&s| is_fs_safe_single_path_component(s))
11891190
.unwrap_or("unknown_part");
1190-
let sn = ereport.data
1191+
let sn = ereport
1192+
.data
11911193
.serial_number
11921194
.as_deref()
11931195
.filter(|&s| is_fs_safe_single_path_component(s))
11941196
.unwrap_or("unknown_serial");
11951197
let id = &ereport.data.id;
1196-
1198+
11971199
let dir = dir
11981200
.join(format!("{pn}-{sn}"))
11991201
// N.B. that we call `into_untyped_uuid()` here, as the `Display`

0 commit comments

Comments
 (0)