diff --git a/static_map/Cargo.toml b/static_map/Cargo.toml index 145a24b..154bf45 100644 --- a/static_map/Cargo.toml +++ b/static_map/Cargo.toml @@ -11,4 +11,5 @@ license = "Apache-2.0/MIT" authors = ["Christopher Breeden "] [dependencies] -fxhash = "0.2.1" \ No newline at end of file +fxhash = "0.2.1" +static_map_macros = {version="0.2.0-beta", path="../static_map_macros"} \ No newline at end of file diff --git a/static_map_macros/src/lib.rs b/static_map_macros/src/lib.rs index 797334f..08578c6 100644 --- a/static_map_macros/src/lib.rs +++ b/static_map_macros/src/lib.rs @@ -12,8 +12,8 @@ use builder::Builder; type Key<'a> = syn::Lit; type Value<'a> = &'a str; -const LEADING: &str = "enum __StaticMap__ {\n A =\n static_map!(@ zero"; -const TRAILING: &str = "),\n}"; +const LEADING: &str = "enum __StaticMap__\n{\n A = static_map !\n (@ zero"; +const TRAILING: &str = ")\n}"; fn trim(input: &str) -> &str { assert!(input.starts_with(LEADING));