From 197e5dd441987357e81bd42bf8cebbe4c72ad94b Mon Sep 17 00:00:00 2001 From: Hunter Bown Date: Tue, 20 Jan 2026 11:48:08 -0600 Subject: [PATCH] Fix cargo fmt formatting issues (#1) --- src/commands/note.rs | 19 +++++-------------- src/settings.rs | 5 ++++- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/commands/note.rs b/src/commands/note.rs index 42e710da..dd8e0085 100644 --- a/src/commands/note.rs +++ b/src/commands/note.rs @@ -1,8 +1,8 @@ //! Note command: append to persistent notes file +use crate::tui::app::App; use std::fs; use std::io::Write; -use crate::tui::app::App; use super::CommandResult; @@ -25,9 +25,7 @@ pub fn note(app: &mut App, content: Option<&str>) -> CommandResult { // Ensure parent directory exists if let Some(parent) = notes_path.parent() { if let Err(e) = fs::create_dir_all(parent) { - return CommandResult::error(format!( - "Failed to create notes directory: {e}" - )); + return CommandResult::error(format!("Failed to create notes directory: {e}")); } } @@ -39,21 +37,14 @@ pub fn note(app: &mut App, content: Option<&str>) -> CommandResult { { Ok(f) => f, Err(e) => { - return CommandResult::error(format!( - "Failed to open notes file: {e}" - )); + return CommandResult::error(format!("Failed to open notes file: {e}")); } }; // Write separator and note content if let Err(e) = writeln!(file, "\n---\n{}", note_content) { - return CommandResult::error(format!( - "Failed to write note: {e}" - )); + return CommandResult::error(format!("Failed to write note: {e}")); } - CommandResult::message(format!( - "Note appended to {}", - notes_path.display() - )) + CommandResult::message(format!("Note appended to {}", notes_path.display())) } diff --git a/src/settings.rs b/src/settings.rs index 784209bc..e674c5da 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -186,7 +186,10 @@ impl Settings { vec![ ("theme", "Color theme: default, dark, light"), ("auto_compact", "Auto-compact conversations: on/off"), - ("auto_rlm", "Auto-switch to RLM mode for large inputs: on/off"), + ( + "auto_rlm", + "Auto-switch to RLM mode for large inputs: on/off", + ), ("show_thinking", "Show model thinking: on/off"), ("show_tool_details", "Show detailed tool output: on/off"), ("default_mode", "Default mode: agent, plan, yolo, rlm, duo"),