fix: drop unused INQUIRY_* constants (clippy -D warnings)
This commit is contained in:
+5
-9
@@ -418,15 +418,11 @@ const SENSE_KEY_NOT_READY: u8 = 2;
|
|||||||
/// realistic homelab (typical PERC + USB optical = ≤8 nodes).
|
/// realistic homelab (typical PERC + USB optical = ≤8 nodes).
|
||||||
const SG_FALLBACK_MAX: u8 = 16;
|
const SG_FALLBACK_MAX: u8 = 16;
|
||||||
|
|
||||||
/// SCSI INQUIRY response field offsets (SPC-4, 6-byte standard CDB
|
// SCSI INQUIRY field-offset constants previously lived here. They were
|
||||||
/// returning 96 bytes). Used to populate `DriveInfo` fields without
|
// used by an in-process SCSI INQUIRY parse path that 0.13.6 retired in
|
||||||
/// magic-number arithmetic at the call site.
|
// favour of reading the kernel-cached sysfs identity (vendor/model/rev
|
||||||
const INQUIRY_VENDOR_OFFSET: usize = 8;
|
// under /sys/class/scsi_generic/sgN/device/). Removed to keep clippy
|
||||||
const INQUIRY_VENDOR_LEN: usize = 8;
|
// -D warnings clean.
|
||||||
const INQUIRY_MODEL_OFFSET: usize = 16;
|
|
||||||
const INQUIRY_MODEL_LEN: usize = 16;
|
|
||||||
const INQUIRY_FIRMWARE_OFFSET: usize = 32;
|
|
||||||
const INQUIRY_FIRMWARE_LEN: usize = 4;
|
|
||||||
|
|
||||||
pub(super) fn list_drives() -> Vec<super::DriveInfo> {
|
pub(super) fn list_drives() -> Vec<super::DriveInfo> {
|
||||||
let mut out = Vec::new();
|
let mut out = Vec::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user