Skip to content

Commit ee16de1

Browse files
clippy: Fix doc_lazy_continuation lints (#5935)
These are in nightly builds.
1 parent b5c33fc commit ee16de1

File tree

9 files changed

+23
-21
lines changed

9 files changed

+23
-21
lines changed

examples/src/uniform_values/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
//! 4. the bind group layout is attached to the pipeline layout.
77
//! 5. the uniform buffer and the bind group are stored alongside the pipeline.
88
//! 6. an instance of `AppState` is created. This variable will be modified
9-
//! to change parameters in the shader and modified by app events to preform and save
10-
//! those changes.
9+
//! to change parameters in the shader and modified by app events to preform and save
10+
//! those changes.
1111
//! 7. (7a and 7b) the `state` variable created at (6) is modified by commands such
12-
//! as pressing the arrow keys or zooming in or out.
12+
//! as pressing the arrow keys or zooming in or out.
1313
//! 8. the contents of the `AppState` are loaded into the uniform buffer in preparation.
1414
//! 9. the bind group with the uniform buffer is attached to the render pass.
1515
//!

naga/src/front/glsl/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ impl<'a> Context<'a> {
393393
/// # Panics
394394
///
395395
/// - If more than one [`StmtContext`] are active at the same time or if the
396-
/// previous call didn't use it in lowering.
396+
/// previous call didn't use it in lowering.
397397
#[must_use]
398398
pub fn stmt_ctx(&mut self) -> StmtContext {
399399
self.stmt_ctx.take().unwrap()

naga/src/valid/analyzer.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/*! Module analyzer.
2-
3-
Figures out the following properties:
4-
- control flow uniformity
5-
- texture/sampler pairs
6-
- expression reference counts
7-
!*/
1+
//! Module analyzer.
2+
//!
3+
//! Figures out the following properties:
4+
//! - control flow uniformity
5+
//! - texture/sampler pairs
6+
//! - expression reference counts
87
98
use super::{ExpressionError, FunctionError, ModuleInfo, ShaderStages, ValidationFlags};
109
use crate::span::{AddSpan as _, WithSpan};

naga/src/valid/handles.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ impl super::Validator {
1616
/// Validates that all handles within `module` are:
1717
///
1818
/// * Valid, in the sense that they contain indices within each arena structure inside the
19-
/// [`crate::Module`] type.
19+
/// [`crate::Module`] type.
2020
/// * No arena contents contain any items that have forward dependencies; that is, the value
21-
/// associated with a handle only may contain references to handles in the same arena that
22-
/// were constructed before it.
21+
/// associated with a handle only may contain references to handles in the same arena that
22+
/// were constructed before it.
2323
///
2424
/// By validating the above conditions, we free up subsequent logic to assume that handle
2525
/// accesses are infallible.

wgpu-core/src/track/buffer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ unsafe fn insert_or_merge<A: HalApi>(
665665
/// - Uses the `start_state_provider` to populate `start_states`
666666
/// - Uses either `end_state_provider` or `start_state_provider`
667667
/// to populate `current_states`.
668+
///
668669
/// If the resource is tracked
669670
/// - Inserts barriers from the state in `current_states`
670671
/// to the state provided by `start_state_provider`.

wgpu-core/src/track/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ impl TrackerIndex {
141141
/// - IDs of dead handles can be recycled while resources are internally held alive (and tracked).
142142
/// - The plan is to remove IDs in the long run
143143
/// ([#5121](https://github.com/gfx-rs/wgpu/issues/5121)).
144+
///
144145
/// In order to produce these tracker indices, there is a shared TrackerIndexAllocator
145146
/// per resource type. Indices have the same lifetime as the internal resource they
146147
/// are associated to (alloc happens when creating the resource and free is called when

wgpu-core/src/track/texture.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ unsafe fn insert_or_merge<A: HalApi>(
10381038
/// - Uses the `start_state_provider` to populate `start_states`
10391039
/// - Uses either `end_state_provider` or `start_state_provider`
10401040
/// to populate `current_states`.
1041+
///
10411042
/// If the resource is tracked
10421043
/// - Inserts barriers from the state in `current_states`
10431044
/// to the state provided by `start_state_provider`.

wgpu-hal/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ pub struct BuildAccelerationStructureDescriptor<'a, A: Api> {
21952195
/// - All buffers, buffer addresses and offsets will be ignored.
21962196
/// - The build mode will be ignored.
21972197
/// - Reducing the amount of Instances, Triangle groups or AABB groups (or the number of Triangles/AABBs in corresponding groups),
2198-
/// may result in reduced size requirements.
2198+
/// may result in reduced size requirements.
21992199
/// - Any other change may result in a bigger or smaller size requirement.
22002200
#[derive(Clone, Debug)]
22012201
pub struct GetAccelerationStructureBuildSizesDescriptor<'a, A: Api> {

wgpu-types/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5446,13 +5446,13 @@ pub struct SurfaceConfiguration<V> {
54465446
///
54475447
/// Typical values range from 3 to 1, but higher values are possible:
54485448
/// * Choose 2 or higher for potentially smoother frame display, as it allows to be at least one frame
5449-
/// to be queued up. This typically avoids starving the GPU's work queue.
5450-
/// Higher values are useful for achieving a constant flow of frames to the display under varying load.
5449+
/// to be queued up. This typically avoids starving the GPU's work queue.
5450+
/// Higher values are useful for achieving a constant flow of frames to the display under varying load.
54515451
/// * Choose 1 for low latency from frame recording to frame display.
5452-
/// ⚠️ If the backend does not support waiting on present, this will cause the CPU to wait for the GPU
5453-
/// to finish all work related to the previous frame when calling `wgpu::Surface::get_current_texture`,
5454-
/// causing CPU-GPU serialization (i.e. when `wgpu::Surface::get_current_texture` returns, the GPU might be idle).
5455-
/// It is currently not possible to query this. See <https://github.com/gfx-rs/wgpu/issues/2869>.
5452+
/// ⚠️ If the backend does not support waiting on present, this will cause the CPU to wait for the GPU
5453+
/// to finish all work related to the previous frame when calling `wgpu::Surface::get_current_texture`,
5454+
/// causing CPU-GPU serialization (i.e. when `wgpu::Surface::get_current_texture` returns, the GPU might be idle).
5455+
/// It is currently not possible to query this. See <https://github.com/gfx-rs/wgpu/issues/2869>.
54565456
/// * A value of 0 is generally not supported and always clamped to a higher value.
54575457
pub desired_maximum_frame_latency: u32,
54585458
/// Specifies how the alpha channel of the textures should be handled during compositing.

0 commit comments

Comments
 (0)