From 78a3d560366727a4e8367a93d55e249737606fcf Mon Sep 17 00:00:00 2001 From: printfn Date: Thu, 28 Nov 2024 10:42:28 +0000 Subject: [PATCH] Don't reset default binding mode --- 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 0a625c19..c60e3dff 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 (r, mut n) in &values[0..values.len() - 1] { + for &(ref r, mut n) in &values[0..values.len() - 1] { n *= 1000; let q = num / n; num -= q * n;