Skip to content

Commit b7014f0

Browse files
committed
Make Ascii implement Copy.
1 parent 033fb26 commit b7014f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use std::ascii::AsciiExt;
2424

2525

2626
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
27-
#[deriving(Clone, PartialEq, PartialOrd, Ord, Eq, Hash)]
27+
#[deriving(Clone, PartialEq, PartialOrd, Ord, Eq, Hash, Copy)]
2828
pub struct Ascii { chr: u8 }
2929

3030
impl Ascii {
@@ -305,7 +305,6 @@ impl IntoBytes for Vec<Ascii> {
305305

306306
#[cfg(test)]
307307
mod tests {
308-
use std::prelude::*;
309308
use super::*;
310309

311310
macro_rules! v2ascii (

0 commit comments

Comments
 (0)