unlock: derive Default for Ld/Renesas unlockers (clippy new_without_default)

Newer stable clippy (CI) flags new() without a Default on the unit-struct
unlockers; the local pinned clippy did not. Unit structs, so derive it.
This commit is contained in:
Matthew Jackson
2026-09-02 18:01:48 -07:00
parent 09dd8ef14c
commit c6d6a5a247
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -49,6 +49,7 @@ pub use cdb::{UNLOCK_MARKER, is_unlock_read_buffer};
// The MT1959 unlocker. Matches a drive against the bundled profile database and
// runs the firmware-unlock + disc-speed-calibration handshake over raw SCSI.
// Stateless: `unlock()` returns what it learned.
#[derive(Default)]
pub struct LdUnlocker;
impl LdUnlocker {
+1
View File
@@ -62,6 +62,7 @@ pub fn is_renesas(scsi: &mut dyn ScsiTransport) -> std::result::Result<bool, Unl
/// is what MakeMKV's LibreDrive does on stock Pioneer firmware), so the Volume
/// ID is then read with the SAME standard `0xAD` reader as freemkv/MT1959 — no
/// host cert, no AKE. Stateless: `unlock()` returns what it learned.
#[derive(Default)]
pub struct Renesas;
impl Renesas {