diff --git a/pcsc/src/lib.rs b/pcsc/src/lib.rs index aba56de..8ce8da5 100644 --- a/pcsc/src/lib.rs +++ b/pcsc/src/lib.rs @@ -40,12 +40,6 @@ pub struct PcscBackend { reader_caps: HashMap, } -impl From for Box { - fn from(card: PcscBackend) -> Box { - Box::new(card) as Box - } -} - /// An implementation of the CardTransaction trait that uses the PCSC lite /// middleware to access the OpenPGP card application on smart cards, via a /// PCSC "transaction". diff --git a/scdc/src/lib.rs b/scdc/src/lib.rs index 947e9b6..86217fa 100644 --- a/scdc/src/lib.rs +++ b/scdc/src/lib.rs @@ -55,12 +55,6 @@ pub struct ScdBackend { card_caps: Option, } -impl From for Box { - fn from(card: ScdBackend) -> Box { - Box::new(card) as Box - } -} - impl ScdBackend { /// Open a CardApp that uses an scdaemon instance as its backend. /// The specific card with AID `serial` is requested from scdaemon.