Reformat with trailing comma

This commit is contained in:
Luke Jones
2025-02-14 16:06:20 +13:00
parent 0bdf0474c9
commit 2c006699f2
113 changed files with 791 additions and 792 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",
}
}
}