mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
Fix latest clippy warnings
This commit is contained in:
parent
8ca2bf7868
commit
ad62bf233c
@ -76,8 +76,8 @@ ron = "0.8"
|
||||
|
||||
[workspace.lints]
|
||||
rust.missing_docs = "allow" # TODO: warn eventually
|
||||
rust.rust_2018_idioms = "warn"
|
||||
rust.rust_2024_compatibility = "allow" # TODO: warn eventually
|
||||
rust.rust_2018_idioms = { level = "warn", priority = -1 }
|
||||
rust.rust_2024_compatibility = { level = "allow", priority = -1 } # TODO: warn eventually
|
||||
clippy.borrow_as_ptr = "warn"
|
||||
clippy.missing_safety_doc = "allow" # TODO: warn eventually
|
||||
clippy.ptr_as_ptr = "warn"
|
||||
|
@ -147,10 +147,8 @@ impl RecordingCommandBuffer {
|
||||
/// `None`.
|
||||
/// - [`transform_offset`] must be a multiple of 16.
|
||||
/// - The size of [`vertex_data`] must be at least<br/> [`primitive_offset`] +
|
||||
/// ([`first_vertex`]
|
||||
/// + 3 * [`primitive_count`]) * [`vertex_stride`] <br/>if [`index_data`] is `None`, and as
|
||||
/// in
|
||||
/// [`build_acceleration_structure`] if [`index_data`] is `Some`.
|
||||
/// ([`first_vertex`] + 3 * [`primitive_count`]) * [`vertex_stride`] <br/>if [`index_data`]
|
||||
/// is `None`, and as in [`build_acceleration_structure`] if [`index_data`] is `Some`.
|
||||
/// - The size of [`index_data`] must be at least<br/> [`primitive_offset`] + 3 *
|
||||
/// [`primitive_count`] * [`index_data.index_type().size()`].
|
||||
/// - The size of [`transform_data`] must be at least<br/> [`transform_offset`] +
|
||||
|
@ -141,7 +141,8 @@ mod traits;
|
||||
/// # Safety
|
||||
///
|
||||
/// - 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)]
|
||||
#[derive(Clone, Copy, Debug, Default, Zeroable, Pod, PartialEq, Eq)]
|
||||
pub struct DispatchIndirectCommand {
|
||||
|
@ -230,8 +230,8 @@ impl Event {
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// - There must be an execution dependency between `reset` and the execution of any \
|
||||
/// [`wait_events`] command that includes this event in its `events` parameter.
|
||||
/// - 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`]: crate::command_buffer::sys::RawRecordingCommandBuffer::wait_events
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user