Fix clippy::default_trait_access
This commit is contained in:
parent
6c386e90a1
commit
42ed90bc6f
19 changed files with 30 additions and 28 deletions
|
|
@ -12,7 +12,7 @@ pub fn convert(
|
|||
|
||||
let sampler = device.create_sampler(&wgpu::SamplerDescriptor {
|
||||
label: Some("iced_wgpu.offscreen.sampler"),
|
||||
..Default::default()
|
||||
..wgpu::SamplerDescriptor::default()
|
||||
});
|
||||
|
||||
//sampler in 0
|
||||
|
|
@ -102,10 +102,10 @@ pub fn convert(
|
|||
primitive: wgpu::PrimitiveState {
|
||||
topology: wgpu::PrimitiveTopology::TriangleList,
|
||||
front_face: wgpu::FrontFace::Cw,
|
||||
..Default::default()
|
||||
..wgpu::PrimitiveState::default()
|
||||
},
|
||||
depth_stencil: None,
|
||||
multisample: Default::default(),
|
||||
multisample: wgpu::MultisampleState::default(),
|
||||
multiview: None,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ impl Pipeline {
|
|||
self.renderers.push(glyphon::TextRenderer::new(
|
||||
&mut self.atlas,
|
||||
device,
|
||||
Default::default(),
|
||||
wgpu::MultisampleState::default(),
|
||||
None,
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue