socksproto: impl Clone for Error.

This commit is contained in:
Nick Mathewson 2022-10-17 09:43:11 -04:00
parent 1cc27a39e2
commit d1e70d9479
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
MODIFIED: Added SocksClientHandshake for client-side support.
MODIFIED: Error implements Clone.

View File

@ -6,7 +6,7 @@ use thiserror::Error;
use tor_error::{ErrorKind, HasKind};
/// An error that occurs while negotiating a SOCKS handshake.
#[derive(Error, Debug)]
#[derive(Clone, Error, Debug)]
#[non_exhaustive]
pub enum Error {
/// The SOCKS client didn't implement SOCKS correctly.