Skip to content

Commit d789a97

Browse files
committed
Fixed all warnings
1 parent a393a30 commit d789a97

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pipeline_cache.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
use std::borrow::Cow;
88
use std::iter::FusedIterator;
99
use std::mem;
10-
use std::ops::Deref;
10+
1111

1212
use bevy::prelude::*;
1313
use bevy::render::render_resource::{
1414
BindGroupLayout, BindGroupLayoutId, CachedPipelineState, ComputePipeline,
1515
ComputePipelineDescriptor, ErasedPipelineLayout, ErasedShaderModule, Pipeline,
16-
PipelineCacheError, RawFragmentState, RawRenderPipelineDescriptor,
17-
RawVertexState, RenderPipelineDescriptor, Shader, ShaderDefVal, ShaderImport, Source, ShaderReflectError,
16+
PipelineCacheError, Shader, ShaderDefVal, ShaderImport, Source,
1817
};
1918
use bevy::render::renderer::RenderDevice;
2019
use bevy::utils::{Entry, HashMap, HashSet};
@@ -24,7 +23,6 @@ use parking_lot::Mutex;
2423
use wgpu::util::make_spirv;
2524
use wgpu::{
2625
Features, PipelineLayout, PipelineLayoutDescriptor, PushConstantRange, ShaderModuleDescriptor,
27-
VertexBufferLayout as RawVertexBufferLayout, ShaderSource,
2826
};
2927

3028
pub struct CachedAppPipeline {
@@ -507,6 +505,7 @@ struct ErrorSources<'a> {
507505
current: Option<&'a (dyn std::error::Error + 'static)>,
508506
}
509507

508+
#[allow(dead_code)]
510509
impl<'a> ErrorSources<'a> {
511510
fn of(error: &'a dyn std::error::Error) -> Self {
512511
Self {

0 commit comments

Comments
 (0)