Skip to content

Commit

Permalink
keep copy and clone
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Mar 15, 2024
1 parent 258a03c commit 17666f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use thiserror::Error;

/// The main error type for the library. Each module has it's own error type that is contained by this error.
#[derive(Error, Debug, PartialEq)]
#[derive(Error, Debug, PartialEq, Copy, Clone)]
pub enum Error {
#[error("Not Found")]
NotFound,
Expand Down
2 changes: 1 addition & 1 deletion src/isotp/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
#[derive(Error, Debug, PartialEq, Copy, Clone)]
pub enum Error {
#[error("Data Too Large")]
DataTooLarge,
Expand Down
2 changes: 1 addition & 1 deletion src/panda/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Error types for the Panda
use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
#[derive(Error, Debug, PartialEq, Copy, Clone)]
pub enum Error {
/// CAN Packet has invalid checksum in the header
#[error("Invalid Checksum")]
Expand Down
2 changes: 1 addition & 1 deletion src/uds/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl From<u8> for NegativeResponseCode {
}
}

#[derive(Error, Debug, PartialEq)]
#[derive(Error, Debug, PartialEq, Copy, Clone)]
pub enum Error {
#[error("Invalid Reponse Service ID: {0}")]
InvalidServiceId(u8),
Expand Down

0 comments on commit 17666f3

Please sign in to comment.