Fixed the .clone() warnings. (#31819)

This commit is contained in:
Aarya Khandelwal 2024-03-22 11:11:17 +05:30 committed by GitHub
parent 95e69fe4ff
commit 9b26dca141
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 76 additions and 93 deletions

View file

@ -41,10 +41,10 @@ pub struct WebGPUContextId(pub u64);
impl Clone for GPUCanvasConfiguration {
fn clone(&self) -> Self {
Self {
alphaMode: self.alphaMode.clone(),
alphaMode: self.alphaMode,
device: self.device.clone(),
format: self.format.clone(),
usage: self.usage.clone(),
format: self.format,
usage: self.usage,
viewFormats: self.viewFormats.clone(),
}
}