Skip to content

Commit bc946b7

Browse files
Re-instate Copy, Clone for errors
1 parent 3fcaeee commit bc946b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libwebauthn/src/transport/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub use crate::proto::CtapError;
22

3-
#[derive(thiserror::Error, Debug, PartialEq)]
3+
#[derive(thiserror::Error, Debug, Copy, Clone, PartialEq)]
44
pub enum PlatformError {
55
#[error("pin too short")]
66
PinTooShort,
@@ -18,7 +18,7 @@ pub enum PlatformError {
1818
SyntaxError,
1919
}
2020

21-
#[derive(thiserror::Error, Debug, PartialEq)]
21+
#[derive(thiserror::Error, Debug, Copy, Clone, PartialEq)]
2222
pub enum TransportError {
2323
#[error("connection failed")]
2424
ConnectionFailed,
@@ -42,7 +42,7 @@ pub enum TransportError {
4242
InvalidSignature,
4343
}
4444

45-
#[derive(thiserror::Error, Debug, PartialEq)]
45+
#[derive(thiserror::Error, Debug, Copy, Clone, PartialEq)]
4646
pub enum Error {
4747
#[error("Transport error: {0}")]
4848
Transport(#[from] TransportError),

0 commit comments

Comments
 (0)