From b2a3c2a20d864ecc6567b38d4ae1ff6a1bb92ed1 Mon Sep 17 00:00:00 2001 From: printfn Date: Fri, 29 Nov 2024 05:33:24 +0000 Subject: [PATCH] Fix clippy --- core/src/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ast.rs b/core/src/ast.rs index c60e3dff..5d453dc1 100644 --- a/core/src/ast.rs +++ b/core/src/ast.rs @@ -864,7 +864,7 @@ fn to_roman(mut num: usize, large: bool) -> String { ("I", 1), ]; if large { - for &(ref r, mut n) in &values[0..values.len() - 1] { + for &(r, mut n) in &values[0..values.len() - 1] { n *= 1000; let q = num / n; num -= q * n;