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.
This commit is contained in:
2025-12-04 09:46:45 +01:00
parent 1bc1a02761
commit 8b92ab252b

View File

@@ -47,7 +47,7 @@ struct Opt {
fn main() {
let opts = Opt::from_args();
let mut primes_list = Rc::new(RefCell::new(VecDeque::<u64>::new()));
let primes_list = Rc::new(RefCell::new(VecDeque::<u64>::new()));
if opts.import.is_some() {
let in_file = File::open(opts.import.unwrap()).unwrap();