Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy lint warnings for Rust 1.83 #434

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/src/graphics/voxels/surface_extraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl SurfaceExtraction {
.map_entries(&specialization_map_entries)
.data(as_bytes(&WORKGROUP_SIZE));

let p_name = b"main\0".as_ptr() as *const c_char;
let p_name = c"main".as_ptr() as *const c_char;
let mut pipelines = device
.create_compute_pipelines(
gfx.pipeline_cache,
Expand Down Expand Up @@ -651,5 +651,5 @@ const FACE_SIZE: vk::DeviceSize = 8;
const WORKGROUP_SIZE: [u32; 3] = [4, 4, 4];

fn round_up(value: vk::DeviceSize, alignment: vk::DeviceSize) -> vk::DeviceSize {
((value + alignment - 1) / alignment) * alignment
value.div_ceil(alignment) * alignment
}
2 changes: 1 addition & 1 deletion common/src/plane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Mul<Plane<f64>> for Side {
}
}

impl<'a, N: na::RealField + Copy> Mul<Plane<N>> for &'a MIsometry<N> {
impl<N: na::RealField + Copy> Mul<Plane<N>> for &MIsometry<N> {
type Output = Plane<N>;
fn mul(self, rhs: Plane<N>) -> Plane<N> {
Plane {
Expand Down