diff --git a/iceoryx2-cli/iox2-config/src/cli.rs b/iceoryx2-cli/iox2-config/src/cli.rs index c217e20c..d6af1c26 100644 --- a/iceoryx2-cli/iox2-config/src/cli.rs +++ b/iceoryx2-cli/iox2-config/src/cli.rs @@ -10,7 +10,6 @@ // // SPDX-License-Identifier: Apache-2.0 OR MIT - use clap::Parser; use clap::Subcommand; diff --git a/iceoryx2-cli/iox2-config/src/commands.rs b/iceoryx2-cli/iox2-config/src/commands.rs index 1274ae1c..5967bf1e 100644 --- a/iceoryx2-cli/iox2-config/src/commands.rs +++ b/iceoryx2-cli/iox2-config/src/commands.rs @@ -11,9 +11,9 @@ // SPDX-License-Identifier: Apache-2.0 OR MIT use anyhow::Result; -use iceoryx2_bb_posix::system_configuration::*; use enum_iterator::all; use iceoryx2::config::Config; +use iceoryx2_bb_posix::system_configuration::*; use std::fs::File; use std::io::Write; use std::path::Path; @@ -118,7 +118,10 @@ pub fn generate() -> Result<()> { let mut file = File::create(&default_file_path)?; file.write_all(toml_string.as_bytes())?; - println!("Default configuration is generated at {}", default_file_path.display()); + println!( + "Default configuration is generated at {}", + default_file_path.display() + ); Ok(()) } diff --git a/iceoryx2-cli/iox2-config/src/main.rs b/iceoryx2-cli/iox2-config/src/main.rs index d0f115ad..178377d8 100644 --- a/iceoryx2-cli/iox2-config/src/main.rs +++ b/iceoryx2-cli/iox2-config/src/main.rs @@ -1,4 +1,3 @@ - // Copyright (c) 2024 Contributors to the Eclipse Foundation // // See the NOTICE file(s) distributed with this work for additional @@ -46,14 +45,12 @@ fn main() { if let Some(action) = cli.action { match action { Action::Show => { - if let Err(e) = commands::show() - { + if let Err(e) = commands::show() { eprintln!("Failed to show options: {}", e); } } Action::Generate => { - if let Err(e) = commands::generate() - { + if let Err(e) = commands::generate() { eprintln!("Failed to generate default configuration: {}", e); } }