Skip to content

Commit 97ca985

Browse files
committed
Fix remaining warnings
1 parent a846beb commit 97ca985

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

rend3-routine/src/forward.rs

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ use wgpu::{
2525
use crate::common::{CameraSpecifier, PerMaterialArchetypeInterface, WholeFrameInterfaces};
2626
use crate::uniforms::PerCameraUniform;
2727

28+
/// This structure is unused.
29+
#[allow(dead_code)] // This structure is never constructed
2830
#[derive(Serialize)]
2931
struct ForwardPreprocessingArguments {
3032
profile: Option<RendererProfile>,

rend3/src/instruction.rs

+7
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@ trait_supertrait_alias!(pub AddMaterialFillInvoke: FnOnce(&mut MaterialManager,
1919
trait_supertrait_alias!(pub ChangeMaterialChangeInvoke: FnOnce(&mut MaterialManager, &Device, &TextureManager<crate::types::Texture2DTag>, RawMaterialHandle) + WasmNotSend + WasmNotSync);
2020
trait_supertrait_alias!(pub AddGraphDataAddInvoke: FnOnce(&mut GraphStorage) + WasmNotSend);
2121

22+
/// Instructions are the basic operations performed by the renderer.
23+
/// The user queues them up by making requests of Rend3,
24+
/// and they are all executed at the beginning
25+
/// of each frame render.
2226
pub struct Instruction {
27+
/// The actual instruction item.
2328
pub kind: InstructionKind,
29+
/// This field is not used.
30+
#[allow(dead_code)]
2431
pub location: Location<'static>,
2532
}
2633

0 commit comments

Comments
 (0)