summaryrefslogtreecommitdiff
path: root/bindgen/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen/rust/src')
-rw-r--r--bindgen/rust/src/lib.rs2
-rw-r--r--bindgen/rust/src/ral.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/bindgen/rust/src/lib.rs b/bindgen/rust/src/lib.rs
index dd83293..4d6cb7f 100644
--- a/bindgen/rust/src/lib.rs
+++ b/bindgen/rust/src/lib.rs
@@ -22,7 +22,7 @@ use std::{
};
use celeritas_sys::{
- Core_Bringup, Core_Shutdown, DirectionalLight, Material, Material_Insert, Model, PointLight,
+ Core_Bringup, Core_Shutdown, DirectionalLight, Material, Material_Insert, PointLight,
TextureHandle, Transform,
};
use serde::{Deserialize, Serialize};
diff --git a/bindgen/rust/src/ral.rs b/bindgen/rust/src/ral.rs
index 3ea69e2..5f7c7d1 100644
--- a/bindgen/rust/src/ral.rs
+++ b/bindgen/rust/src/ral.rs
@@ -1,6 +1,6 @@
//! Wrapper around the RAL code in celeritas-core
-use std::ffi::{c_void, CString};
+use std::ffi::c_void;
use celeritas_sys::{
BufferHandle, GPU_CmdEncoder, GPU_CmdEncoder_BeginRender, GPU_CmdEncoder_EndRender,
@@ -319,8 +319,8 @@ mod test {
use super::*;
struct TestData {
- a: [f32; 2],
- b: [f32; 4],
+ _a: [f32; 2],
+ _b: [f32; 4],
}
impl ShaderData for TestData {
fn layout() -> ShaderDataLayout {
@@ -338,7 +338,7 @@ mod test {
.add_attr("position", VertexAttrKind::Floatx2)
.add_attr("color", VertexAttrKind::Floatx4);
- let mut builder = PipelineBuilder::new("Test Pipeline".into())
+ let builder = PipelineBuilder::new("Test Pipeline".into())
.add_shader_layout::<TestData>()
.add_vertex_desc(vertex_desc);