chore: Fix clap update

This commit is contained in:
relrelb 2021-08-17 21:59:54 +03:00 committed by relrelb
parent cb2f1b6488
commit 45d2f3fcde
1 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,4 @@
use clap::Clap; #[derive(Copy, Clone, PartialEq, Debug, clap::ArgEnum)]
#[derive(Copy, Clone, Clap, PartialEq, Debug)]
pub enum GraphicsBackend { pub enum GraphicsBackend {
Default, Default,
Vulkan, Vulkan,
@ -21,7 +19,7 @@ impl From<GraphicsBackend> for wgpu::BackendBit {
} }
} }
#[derive(Copy, Clone, Clap, PartialEq, Debug)] #[derive(Copy, Clone, PartialEq, Debug, clap::ArgEnum)]
pub enum PowerPreference { pub enum PowerPreference {
Low = 1, Low = 1,
High = 2, High = 2,