Skip to content

Commit 88f1518

Browse files
T3pp31cursoragent
andcommitted
style: apply rustfmt to cli.rs for CI
cargo fmt --check failed on import layout and chained call formatting. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5d126ee commit 88f1518

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/cli.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use std::io::{self, Write};
55
use crate::bounded_input::{read_file_bounded, read_line_bounded};
66
use crate::caesar_cipher::{decrypt, decrypt_safe, encrypt, encrypt_safe};
77
use crate::config::{
8-
DEFAULT_SHIFT, MAX_BRUTE_FORCE_SHIFT, MAX_INPUT_SIZE, MAX_SHIFT, MAX_SHIFT_LINE_SIZE,
9-
MIN_SHIFT,
8+
DEFAULT_SHIFT, MAX_BRUTE_FORCE_SHIFT, MAX_INPUT_SIZE, MAX_SHIFT, MAX_SHIFT_LINE_SIZE, MIN_SHIFT,
109
};
1110

1211
/// Main CLI structure for the Caesar cipher application
@@ -158,8 +157,7 @@ fn get_input_text(
158157
}
159158

160159
if let Some(f) = file {
161-
let input = read_file_bounded(&f, MAX_INPUT_SIZE)
162-
.map_err(|e| e.to_string())?;
160+
let input = read_file_bounded(&f, MAX_INPUT_SIZE).map_err(|e| e.to_string())?;
163161
return Ok(trim_trailing_newline(&input).to_string());
164162
}
165163

0 commit comments

Comments
 (0)