From 83159b4348a740e2bd6886f6510564ecf3920413 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Wed, 13 Nov 2024 12:30:34 +0100 Subject: [PATCH] Fix callsites --- src/encoder.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/encoder.rs b/src/encoder.rs index acd92f0..fc0d8f5 100644 --- a/src/encoder.rs +++ b/src/encoder.rs @@ -81,7 +81,7 @@ fn serialize_range_mappings(sm: &SourceMap) -> Option { while token.get_dst_line() != prev_line { if had_rmi { - encode_rmi(&mut buf, &mut rmi_data); + encode_rmi(&mut buf, &rmi_data); rmi_data.clear(); } @@ -96,7 +96,7 @@ fn serialize_range_mappings(sm: &SourceMap) -> Option { } if had_rmi { - encode_rmi(&mut buf, &mut rmi_data); + encode_rmi(&mut buf, &rmi_data); } Some(String::from_utf8(buf).expect("invalid utf8")) @@ -240,7 +240,7 @@ fn test_encode_rmi() { bits.set(i, true); } - encode_rmi(&mut out, &mut data); + encode_rmi(&mut out, &data); String::from_utf8(out).unwrap() }