mirror of
https://github.com/freemkv/freemkv-unlock.git
synced 2026-10-07 18:13:11 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user