Skip to content

Commit

Permalink
cli/sparse: Fix clippy warning on non-Linux/Android builds
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
  • Loading branch information
chenxiaolong committed Sep 23, 2024
1 parent 5a78856 commit af7262a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions avbroot/src/cli/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ fn pack_subcommand(
}
#[cfg(not(any(target_os = "linux", target_os = "android")))]
{
#[allow(clippy::single_range_in_vec_init)]
(vec![0..file_size], true)
}
};
Expand Down

0 comments on commit af7262a

Please sign in to comment.