add wildcard branches for matches on enums

This commit is contained in:
FreezyLemon
2022-10-22 16:25:24 +02:00
committed by Josh Holmer
parent 022eaa28cf
commit 28c356dd98
21 changed files with 42 additions and 0 deletions

View File

@ -22,6 +22,8 @@ impl From<AVMediaType> for Type {
AVMEDIA_TYPE_SUBTITLE => Type::Subtitle,
AVMEDIA_TYPE_ATTACHMENT => Type::Attachment,
AVMEDIA_TYPE_NB => Type::Unknown,
_ => unimplemented!(),
}
}
}