From e8b3dd36cc5fa5aab2a0d4f020f01da78152ce47 Mon Sep 17 00:00:00 2001 From: mehbark Date: Wed, 8 Jul 2026 00:25:47 -0400 Subject: [PATCH] send status messages to stderr why would i put this off lol --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index b33fc6f..10fb23a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ fn main() { .collect(); let target = env::args().nth(1).map_or(LetterSet::FULL, LetterSet::from); - println!("letter count: {}", target.len()); + eprintln!("letter count: {}", target.len()); let Some((len, path)) = solve(&mut dictionary, target) else { println!("failed :("); process::exit(1); @@ -33,11 +33,11 @@ fn solve(dictionary: &mut [(String, LetterSet)], target: LetterSet) -> Option<(u let mut bests = (0..=LetterSet::FULL.to_index()) .map(|_| (u8::MAX, None)) .collect::>(); - println!("allocated!"); + eprintln!("allocated!"); bests[LetterSet::FULL.to_index()] = (0, None); dictionary.sort_by_key(|(word, ls)| word.len() - usize::from(ls.len())); - println!("sorted!"); + eprintln!("sorted!"); score(dictionary, &mut bests, target.negation(), 0);