Skip to content

Commit b4a05cf

Browse files
daniel-nolandFredi-raspall
authored andcommitted
chore(init): fmt
1 parent fb8ca6b commit b4a05cf

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

init/src/main.rs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -439,24 +439,22 @@ fn main() {
439439

440440
let launch_config = launch_config.to_owned_fd();
441441

442-
let io_err = std::process::Command::new(
443-
"/bin/dataplane",
444-
)
445-
.fd_mappings(vec![
446-
FdMapping {
447-
parent_fd: integrity_check,
448-
child_fd: LaunchConfiguration::STANDARD_INTEGRITY_CHECK_FD,
449-
},
450-
FdMapping {
451-
parent_fd: launch_config,
452-
child_fd: LaunchConfiguration::STANDARD_CONFIG_FD,
453-
},
454-
])
455-
.into_diagnostic()
456-
.wrap_err("failed to set file descriptor mapping for child process")
457-
.unwrap()
458-
.env_clear()
459-
.exec();
442+
let io_err = std::process::Command::new("/bin/dataplane")
443+
.fd_mappings(vec![
444+
FdMapping {
445+
parent_fd: integrity_check,
446+
child_fd: LaunchConfiguration::STANDARD_INTEGRITY_CHECK_FD,
447+
},
448+
FdMapping {
449+
parent_fd: launch_config,
450+
child_fd: LaunchConfiguration::STANDARD_CONFIG_FD,
451+
},
452+
])
453+
.into_diagnostic()
454+
.wrap_err("failed to set file descriptor mapping for child process")
455+
.unwrap()
456+
.env_clear()
457+
.exec();
460458

461459
// if we got here then we failed to exec somehow
462460
Result::<(), _>::Err(io_err)

0 commit comments

Comments
 (0)