fn draw_tiles(d: &mut RaylibDrawHandle, tiles: &[(i32, i32)], color: Color) {
    //changed from being &Vec<(i32, i32)>
    for tuple in tiles {
        d.draw_rectangle(
            (tuple.0 as f32 * TILE_SIZE as f32 * SCALE) as i32 + 2,
            (tuple.1 as f32 * TILE_SIZE as f32 * SCALE) as i32 + 2,
            (TILE_SIZE as f32 * SCALE) as i32 - 2,
            (TILE_SIZE as f32 * SCALE) as i32 - 2,
            color,
        );
    }
}
//Was very iffy about changing this but things still work. Apparently this will allow it to work with non Vec-based slices according to clippy
Was very iffy about changing this but things still work. Apparently this will allow it to work with non Vec-based slices according to clippy
Was very iffy about changing this but things still work . Apparently this will allow it to work with non Vec - based slices according to clippy
fn draw_tiles(d: &mut RaylibDrawHandle, tiles: &[(i32, i32)], color: Color) {
    //changed from being &Vec<(i32, i32)>
    for tuple in tiles {
        d.draw_rectangle(
            (tuple.0 as f32 * TILE_SIZE as f32 * SCALE) as i32 + 2,
            (tuple.1 as f32 * TILE_SIZE as f32 * SCALE) as i32 + 2,
            (TILE_SIZE as f32 * SCALE) as i32 - 2,
            (TILE_SIZE as f32 * SCALE) as i32 - 2,
            color,
        );
    }
}
fn draw_tiles ( d : & mut RaylibDrawHandle , tiles : & [ ( i32 , i32 ) ] , color : Color ) { //changed from being &Vec<(i32, i32)> for tuple in tiles { d . draw_rectangle ( ( tuple . 0 as f32 * TILE_SIZE as f32 * SCALE ) as i32 + 2 , ( tuple . 1 as f32 * TILE_SIZE as f32 * SCALE ) as i32 + 2 , ( TILE_SIZE as f32 * SCALE ) as i32 - 2 , ( TILE_SIZE as f32 * SCALE ) as i32 - 2 , color , ) ; } }
Was very iffy about changing this but things still work.
Was very iffy about changing this but things still work .
d
&mut RaylibDrawHandle
tiles
&[(i32, i32)]
color
Color
d
&mut RaylibDrawHandle
tiles
&[(i32, i32)]
color
Color