Skip to content

Commit a36d008

Browse files
committed
Fix warnings.
1 parent d1e4a48 commit a36d008

File tree

7 files changed

+6
-21
lines changed

7 files changed

+6
-21
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/processing_midi/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ impl Plugin for MidiPlugin {
1212
}
1313
}
1414

15-
enum MidiCommand {}
16-
17-
pub fn connect(port: usize) {
15+
pub fn connect(_port: usize) {
1816
// we need to work with the ECS
1917
// do we pass a MidiCommand to Bevy?
2018
}

crates/processing_render/src/geometry/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pub fn vertex(
250250
.get(geometry.layout)
251251
.map_err(|_| ProcessingError::LayoutNotFound)?;
252252

253-
let mut mesh = meshes
253+
let mesh = meshes
254254
.get_mut(&geometry.handle)
255255
.map(|m| m.into_inner())
256256
.ok_or(ProcessingError::GeometryNotFound)?;
@@ -324,7 +324,7 @@ pub fn index(
324324
.get(entity)
325325
.map_err(|_| ProcessingError::GeometryNotFound)?;
326326

327-
let mut mesh = meshes
327+
let mesh = meshes
328328
.get_mut(&geometry.handle)
329329
.map(|m| m.into_inner())
330330
.ok_or(ProcessingError::GeometryNotFound)?;

crates/processing_render/src/graphics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use bevy::{
2828
use crate::{
2929
Flush,
3030
error::{ProcessingError, Result},
31-
image::{Image, bytes_to_pixels, create_readback_buffer, pixel_size, pixels_to_bytes},
31+
image::{Image, create_readback_buffer, pixel_size, pixels_to_bytes},
3232
render::{
3333
RenderState,
3434
command::{CommandBuffer, DrawCommand},

crates/processing_render/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use config::*;
1818
#[cfg(not(target_arch = "wasm32"))]
1919
use bevy::log::tracing_subscriber;
2020
use bevy::render::RenderPlugin;
21-
use bevy::render::settings::{RenderCreation, WgpuSettings};
2221
use bevy::{
2322
app::{App, AppExit},
2423
asset::{AssetEventSystems, io::AssetSourceBuilder},

crates/processing_render/src/material/custom.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,6 @@ fn compile_shader(source: &str) -> Result<(String, naga::Module)> {
125125
Ok((wgsl, module))
126126
}
127127

128-
fn detect_stages(module: &naga::Module) -> (bool, bool) {
129-
let has_vertex = module
130-
.entry_points
131-
.iter()
132-
.any(|ep| ep.stage == naga::ShaderStage::Vertex);
133-
let has_fragment = module
134-
.entry_points
135-
.iter()
136-
.any(|ep| ep.stage == naga::ShaderStage::Fragment);
137-
(has_vertex, has_fragment)
138-
}
139-
140128
pub fn create_shader(
141129
In(source): In<String>,
142130
mut commands: Commands,

examples/custom_material.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn sketch() -> error::Result<()> {
2424
init(Config::default())?;
2525

2626
let surface = glfw_ctx.create_surface(width, height, 1.0)?;
27-
let graphics = graphics_create(surface, width, height)?;
27+
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;
2828
let box_geo = geometry_box(100.0, 100.0, 100.0)?;
2929

3030
graphics_mode_3d(graphics)?;

0 commit comments

Comments
 (0)