Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
Keep feeding the CI beast!
  • Loading branch information
raphlinus committed Dec 9, 2024
1 parent 4e92d2e commit 1f797e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cpu-sparse/src/simd/neon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub fn render_strips_simd(tiles: &[Tile], strip_buf: &mut Vec<Strip>, alpha_buf:
// Note: the input should contain a sentinel tile, to avoid having
// logic here to process the final strip.
const IOTA: [f32; 4] = [0.0, 1.0, 2.0, 3.0];
let iota = vld1q_f32(IOTA.as_ptr() as *const f32);
let iota = vld1q_f32(IOTA.as_ptr());
for i in 1..tiles.len() {
let tile = &tiles[i];
if prev_tile.loc() != tile.loc() {
Expand Down
1 change: 1 addition & 0 deletions piet-next/src/generic_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enum Cmd<RC: RenderCtx> {
}

impl<RC: RenderCtx> GenericRecorder<RC> {
#[allow(clippy::new_without_default)]
pub fn new() -> Self {
let cmds = Vec::new();
GenericRecorder { cmds }
Expand Down

0 comments on commit 1f797e3

Please sign in to comment.