Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement Copy for some types #403

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions imap-codec/src/codec/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub trait Decoder {

/// Error during greeting decoding.
#[cfg_attr(feature = "bounded-static", derive(ToStatic))]
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum GreetingDecodeError {
/// More data is needed.
Incomplete,
Expand Down Expand Up @@ -198,7 +198,7 @@ pub enum CommandDecodeError<'a> {

/// Error during authenticate data line decoding.
#[cfg_attr(feature = "bounded-static", derive(ToStatic))]
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum AuthenticateDataDecodeError {
/// More data is needed.
Incomplete,
Expand Down Expand Up @@ -233,7 +233,7 @@ pub enum ResponseDecodeError {

/// Error during idle done decoding.
#[cfg_attr(feature = "bounded-static", derive(ToStatic))]
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum IdleDoneDecodeError {
/// More data is needed.
Incomplete,
Expand Down
4 changes: 2 additions & 2 deletions imap-types/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl<'a> Greeting<'a> {
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
#[cfg_attr(feature = "bounded-static", derive(ToStatic))]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
/// IMAP4rev1 defines three possible greetings at connection startup.
pub enum GreetingKind {
/// The connection is not yet authenticated.
Expand Down Expand Up @@ -628,7 +628,7 @@ pub struct StatusBody<'a> {
pub text: Text<'a>,
}

#[derive(Debug)]
#[derive(Clone, Copy, Debug)]
pub enum StatusKind {
Ok,
No,
Expand Down
Loading