remove unneeded incomplete impl
This commit is contained in:
parent
df8d4d06bf
commit
00607122dd
1 changed files with 0 additions and 25 deletions
25
src/main.rs
25
src/main.rs
|
@ -179,31 +179,6 @@ enum Type {
|
||||||
Fairy,
|
Fairy,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Type> for usize {
|
|
||||||
fn from(value: Type) -> Self {
|
|
||||||
match value {
|
|
||||||
Type::Normal => 0,
|
|
||||||
Type::Fire => 1,
|
|
||||||
Type::Water => 2,
|
|
||||||
Type::Electric => todo!(),
|
|
||||||
Type::Grass => todo!(),
|
|
||||||
Type::Ice => todo!(),
|
|
||||||
Type::Fighting => todo!(),
|
|
||||||
Type::Poison => todo!(),
|
|
||||||
Type::Ground => todo!(),
|
|
||||||
Type::Flying => todo!(),
|
|
||||||
Type::Psychic => todo!(),
|
|
||||||
Type::Bug => todo!(),
|
|
||||||
Type::Rock => todo!(),
|
|
||||||
Type::Ghost => todo!(),
|
|
||||||
Type::Dragon => todo!(),
|
|
||||||
Type::Dark => todo!(),
|
|
||||||
Type::Steel => todo!(),
|
|
||||||
Type::Fairy => todo!(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
enum Efficacy {
|
enum Efficacy {
|
||||||
Strong,
|
Strong,
|
||||||
|
|
Loading…
Reference in a new issue