Give Derive enum and impls their own module
diff --git a/syntax/mod.rs b/syntax/mod.rs
index 9e4cbbc..d21c083 100644
--- a/syntax/mod.rs
+++ b/syntax/mod.rs
@@ -3,6 +3,7 @@
pub mod atom;
mod attrs;
pub mod check;
+mod derive;
mod doc;
pub mod error;
pub mod ident;
@@ -23,6 +24,7 @@
use syn::{Lifetime, LitStr, Token, Type as RustType};
pub use self::atom::Atom;
+pub use self::derive::Derive;
pub use self::doc::Doc;
pub use self::parse::parse_items;
pub use self::types::Types;
@@ -145,9 +147,3 @@
Cxx,
Rust,
}
-
-#[derive(Copy, Clone, PartialEq)]
-pub enum Derive {
- Clone,
- Copy,
-}