From 8b92ab252bc51d32b251aeb3d847876ce6147f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Thu, 4 Dec 2025 09:46:45 +0100 Subject: [PATCH] Remove unnecessary mut on primes_list. I thought this would be necessary in order to add to the primes_list... not sure why I'm wrong. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 40d062e..38e2027 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,7 @@ struct Opt { fn main() { let opts = Opt::from_args(); - let mut primes_list = Rc::new(RefCell::new(VecDeque::::new())); + let primes_list = Rc::new(RefCell::new(VecDeque::::new())); if opts.import.is_some() { let in_file = File::open(opts.import.unwrap()).unwrap();