diff --git a/wgpu/src/backend/wgpu_core.rs b/wgpu/src/backend/wgpu_core.rs index 1d4139e73f..ddc133dd1e 100644 --- a/wgpu/src/backend/wgpu_core.rs +++ b/wgpu/src/backend/wgpu_core.rs @@ -852,13 +852,10 @@ impl crate::Context for ContextWgpuCore { ShaderSource::Glsl { ref shader, stage, - ref defines, + defines, } => { // Parse the given shader code and store its representation. - let options = naga::front::glsl::Options { - stage, - defines: defines.clone(), - }; + let options = naga::front::glsl::Options { stage, defines }; let mut parser = naga::front::glsl::Frontend::default(); let module = parser.parse(&options, shader).unwrap();