mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
refactor: resolve clippy::redundant_clone (#3717)
This commit is contained in:
1 parent
3432aabab1
commit
2571af9557
1 file changed
+1
-1
@@ -5485,7 +5485,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
if !caps.formats.contains(&config.format) {
|
||||
break 'outer E::UnsupportedFormat {
|
||||
requested: config.format,
|
||||
available: caps.formats.clone(),
|
||||
available: caps.formats,
|
||||
};
|
||||
}
|
||||
if config.format.remove_srgb_suffix() != format.remove_srgb_suffix() {
|
||||
|
||||
Reference in new issue
Block a user