Skip to content

Commit

Permalink
Fix clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Apr 4, 2015
1 parent 25bdc4a commit 11a59d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use self::ParseState::{
///
/// Generally, you won't need to use this type because `CRLF` is the default,
/// which is by far the most widely used record terminator.
#[derive(Copy)]
#[derive(Clone, Copy)]
pub enum RecordTerminator {
/// Parses `\r`, `\n` or `\r\n` as a single record terminator.
CRLF,
Expand Down Expand Up @@ -817,7 +817,7 @@ impl<R: io::Read + io::Seek> Reader<R> {
}
}

#[derive(Copy)]
#[derive(Clone, Copy)]
struct ParseMachine {
delimiter: u8,
record_terminator: RecordTerminator,
Expand All @@ -826,7 +826,7 @@ struct ParseMachine {
double_quote: bool,
}

#[derive(Copy, Eq, PartialEq, Debug)]
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
enum ParseState {
StartRecord,
EndRecord,
Expand Down
2 changes: 1 addition & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use {
};

/// The quoting style to use when writing CSV data.
#[derive(Copy)]
#[derive(Clone, Copy)]
pub enum QuoteStyle {
/// This puts quotes around every field. Always.
Always,
Expand Down

0 comments on commit 11a59d6

Please sign in to comment.