Skip to content

Commit

Permalink
fix clipy
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 13, 2024
1 parent e53ed5f commit ca6d0c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl SourceMapBuilder {
}

/// Adds a new mapping to the builder.
#[allow(clippy::too_many_arguments)]
pub fn add(
&mut self,
dst_line: u32,
Expand Down Expand Up @@ -230,6 +231,7 @@ impl SourceMapBuilder {
}

/// Adds a new mapping to the builder.
#[allow(clippy::too_many_arguments)]
pub fn add_raw(
&mut self,
dst_line: u32,
Expand Down
3 changes: 1 addition & 2 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ fn test_encode_rmi() {
fn encode(indices: &[usize]) -> String {
let mut out = vec![];

let mut data = Vec::with_capacity(256);
// Fill with zeros while testing
data.resize(256, 0);
let mut data = vec![0; 256];

let bits = data.view_bits_mut::<Lsb0>();
for &i in indices {
Expand Down

0 comments on commit ca6d0c5

Please sign in to comment.