From b2565fda08c27d3a8bd956fe7682a0361d7cc7f2 Mon Sep 17 00:00:00 2001 From: Ylarod Date: Sat, 22 Nov 2025 17:29:40 +0800 Subject: [PATCH] ksud: fmt --- userspace/ksud/src/cli.rs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/userspace/ksud/src/cli.rs b/userspace/ksud/src/cli.rs index f06548d3..cbae285a 100644 --- a/userspace/ksud/src/cli.rs +++ b/userspace/ksud/src/cli.rs @@ -579,7 +579,12 @@ pub fn run() -> Result<()> { None => anyhow::bail!("Key '{key}' not found"), } } - ModuleConfigCmd::Set { key, value, stdin, temp } => { + ModuleConfigCmd::Set { + key, + value, + stdin, + temp, + } => { // Validate key at CLI layer for better user experience module_config::validate_config_key(&key)?; @@ -590,7 +595,8 @@ pub fn run() -> Result<()> { // Read from stdin use std::io::Read; let mut buffer = String::new(); - std::io::stdin().read_to_string(&mut buffer) + std::io::stdin() + .read_to_string(&mut buffer) .context("Failed to read from stdin")?; buffer } @@ -604,7 +610,12 @@ pub fn run() -> Result<()> { } else { module_config::ConfigType::Persist }; - module_config::set_config_value(&module_id, &key, &value_str, config_type) + module_config::set_config_value( + &module_id, + &key, + &value_str, + config_type, + ) } ModuleConfigCmd::List => { let config = module_config::merge_configs(&module_id)?;