Fix latest clippy warnings

This commit is contained in:
marc0246 2024-07-25 20:39:57 +02:00
parent 8ca2bf7868
commit ad62bf233c
No known key found for this signature in database
GPG Key ID: 689CB88C1090C684
4 changed files with 8 additions and 9 deletions

View File

@ -76,8 +76,8 @@ ron = "0.8"
[workspace.lints] [workspace.lints]
rust.missing_docs = "allow" # TODO: warn eventually rust.missing_docs = "allow" # TODO: warn eventually
rust.rust_2018_idioms = "warn" rust.rust_2018_idioms = { level = "warn", priority = -1 }
rust.rust_2024_compatibility = "allow" # TODO: warn eventually rust.rust_2024_compatibility = { level = "allow", priority = -1 } # TODO: warn eventually
clippy.borrow_as_ptr = "warn" clippy.borrow_as_ptr = "warn"
clippy.missing_safety_doc = "allow" # TODO: warn eventually clippy.missing_safety_doc = "allow" # TODO: warn eventually
clippy.ptr_as_ptr = "warn" clippy.ptr_as_ptr = "warn"

View File

@ -147,10 +147,8 @@ impl RecordingCommandBuffer {
/// `None`. /// `None`.
/// - [`transform_offset`] must be a multiple of 16. /// - [`transform_offset`] must be a multiple of 16.
/// - The size of [`vertex_data`] must be at least<br/> [`primitive_offset`] + /// - The size of [`vertex_data`] must be at least<br/> [`primitive_offset`] +
/// ([`first_vertex`] /// ([`first_vertex`] + 3 * [`primitive_count`]) * [`vertex_stride`] <br/>if [`index_data`]
/// + 3 * [`primitive_count`]) * [`vertex_stride`] <br/>if [`index_data`] is `None`, and as /// is `None`, and as in [`build_acceleration_structure`] if [`index_data`] is `Some`.
/// in
/// [`build_acceleration_structure`] if [`index_data`] is `Some`.
/// - The size of [`index_data`] must be at least<br/> [`primitive_offset`] + 3 * /// - The size of [`index_data`] must be at least<br/> [`primitive_offset`] + 3 *
/// [`primitive_count`] * [`index_data.index_type().size()`]. /// [`primitive_count`] * [`index_data.index_type().size()`].
/// - The size of [`transform_data`] must be at least<br/> [`transform_offset`] + /// - The size of [`transform_data`] must be at least<br/> [`transform_offset`] +

View File

@ -141,7 +141,8 @@ mod traits;
/// # Safety /// # Safety
/// ///
/// - The `x`, `y` and `z` values must not be greater than the respective elements of the /// - The `x`, `y` and `z` values must not be greater than the respective elements of the
/// [`max_compute_work_group_count`](DeviceProperties::max_compute_work_group_count) device limit. /// [`max_compute_work_group_count`](DeviceProperties::max_compute_work_group_count) device
/// limit.
#[repr(C)] #[repr(C)]
#[derive(Clone, Copy, Debug, Default, Zeroable, Pod, PartialEq, Eq)] #[derive(Clone, Copy, Debug, Default, Zeroable, Pod, PartialEq, Eq)]
pub struct DispatchIndirectCommand { pub struct DispatchIndirectCommand {

View File

@ -230,8 +230,8 @@ impl Event {
/// ///
/// # Safety /// # Safety
/// ///
/// - There must be an execution dependency between `reset` and the execution of any \ /// - There must be an execution dependency between `reset` and the execution of any
/// [`wait_events`] command that includes this event in its `events` parameter. /// [`wait_events`] command that includes this event in its `events` parameter.
/// ///
/// [`wait_events`]: crate::command_buffer::sys::RawRecordingCommandBuffer::wait_events /// [`wait_events`]: crate::command_buffer::sys::RawRecordingCommandBuffer::wait_events
#[inline] #[inline]