rename bitmatrix test cases mod

This commit is contained in:
Henry Schimke
2023-01-11 16:02:26 -06:00
parent f037a743e7
commit fde23934f6
13 changed files with 51 additions and 32 deletions

View File

@@ -109,7 +109,12 @@ impl Display for BarcodeFormat {
}
}
/// Defaults to QRCode if no proper formatting available
impl From<String> for BarcodeFormat {
fn from(value: String) -> Self {
value.as_str().into()
}
}
impl From<&str> for BarcodeFormat {
fn from(value: &str) -> Self {
match value.to_lowercase().as_str() {