Update readme, slash configs

This commit is contained in:
Luke D. Jones
2025-01-12 17:36:10 +13:00
parent 2123f369ad
commit 128bc3fce1
113 changed files with 1545 additions and 1305 deletions

View File

@@ -13,14 +13,14 @@ pub const PROD_SCSI_ARION: &str = "1932";
pub enum ScsiType {
Arion,
#[default]
Unsupported,
Unsupported
}
impl ScsiType {
pub const fn prod_id_str(&self) -> &str {
match self {
ScsiType::Arion => PROD_SCSI_ARION,
ScsiType::Unsupported => "",
ScsiType::Unsupported => ""
}
}
}
@@ -29,7 +29,7 @@ impl From<&str> for ScsiType {
fn from(s: &str) -> Self {
match s.to_lowercase().as_str() {
PROD_SCSI_ARION | "0x1932" => Self::Arion,
_ => Self::Unsupported,
_ => Self::Unsupported
}
}
}
@@ -38,7 +38,7 @@ impl From<ScsiType> for &str {
fn from(s: ScsiType) -> Self {
match s {
ScsiType::Arion => PROD_SCSI_ARION,
ScsiType::Unsupported => "Unsupported",
ScsiType::Unsupported => "Unsupported"
}
}
}