mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
clippy fixes
This commit is contained in:
1 parent
67d31b8e8c
commit
13ee4369cc
5 files changed
+5
-4
No files matched your search
+1
-1
@@ -205,7 +205,7 @@ impl TypeInfo {
|
||||
}
|
||||
|
||||
impl super::Validator {
|
||||
fn require_type_capability(&self, capability: Capabilities) -> Result<(), TypeError> {
|
||||
const fn require_type_capability(&self, capability: Capabilities) -> Result<(), TypeError> {
|
||||
if self.capabilities.contains(capability) {
|
||||
Ok(())
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user