feat(OID): silence warnings

This commit is contained in:
Bernhard Schuster
2019-12-13 21:15:28 +01:00
parent 113c6ad16a
commit ab7616a86c

View File

@@ -339,11 +339,11 @@ impl Error for ASN1DecodeErr {
} }
} }
fn cause(&self) -> Option<&Error> { fn cause(&self) -> Option<&dyn Error> {
None None
} }
fn source(&self) -> Option<&(Error + 'static)> { fn source(&self) -> Option<&(dyn Error + 'static)> {
None None
} }
} }
@@ -374,11 +374,11 @@ impl Error for ASN1EncodeErr {
} }
} }
fn cause(&self) -> Option<&Error> { fn cause(&self) -> Option<& dyn Error> {
None None
} }
fn source(&self) -> Option<&(Error + 'static)> { fn source(&self) -> Option<&(dyn Error + 'static)> {
None None
} }
} }
@@ -523,7 +523,7 @@ fn from_der_(i: &[u8], start_offset: usize)
// PRINTABLE STRING // PRINTABLE STRING
Some(0x13) => { Some(0x13) => {
let mut res = String::new(); let mut res = String::new();
let mut val = body.iter().map(|x| *x as char); let val = body.iter().map(|x| *x as char);
for c in val { for c in val {
if PRINTABLE_CHARS.contains(c) { if PRINTABLE_CHARS.contains(c) {