Implement Clone for openssl::error::ErrorStack

This commit is contained in:
Novotnik, Petr 2016-09-01 20:10:02 +02:00
parent 4d4292a3b0
commit 5e08ad0085
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ use std::str;
use ffi;
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct ErrorStack(Vec<Error>);
impl ErrorStack {
@ -61,6 +61,7 @@ impl From<ErrorStack> for fmt::Error {
}
/// An error reported from OpenSSL.
#[derive(Clone)]
pub struct Error(c_ulong);
impl Error {