Skip to content

Commit

Permalink
Fix callsites
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Nov 13, 2024
1 parent e6134ea commit 83159b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn serialize_range_mappings(sm: &SourceMap) -> Option<String> {

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();
}

Expand All @@ -96,7 +96,7 @@ fn serialize_range_mappings(sm: &SourceMap) -> Option<String> {
}

if had_rmi {
encode_rmi(&mut buf, &mut rmi_data);
encode_rmi(&mut buf, &rmi_data);
}

Some(String::from_utf8(buf).expect("invalid utf8"))
Expand Down Expand Up @@ -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()
}

Expand Down

0 comments on commit 83159b4

Please sign in to comment.