Add Debug impl for EcKey
This commit is contained in:
parent
179758010a
commit
d2e48e8d1f
|
|
@ -34,6 +34,7 @@
|
|||
use ffi;
|
||||
use foreign_types::{ForeignType, ForeignTypeRef};
|
||||
use libc::c_int;
|
||||
use std::fmt;
|
||||
use std::ptr;
|
||||
|
||||
use bn::{BigNumContextRef, BigNumRef};
|
||||
|
|
@ -825,6 +826,12 @@ impl<T> Clone for EcKey<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> fmt::Debug for EcKey<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "EcKey")
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use hex::FromHex;
|
||||
|
|
|
|||
Loading…
Reference in New Issue