From 23a4d46ac579cef8f1f5950c48b69691944d9085 Mon Sep 17 00:00:00 2001 From: csicar Date: Fri, 13 Aug 2021 00:24:24 +0200 Subject: [PATCH 1/2] Fix compilation error --- static_map_macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); From c1c5cf945c5cd5e5ac3d7296e7105e82bf803b6c Mon Sep 17 00:00:00 2001 From: csicar Date: Fri, 13 Aug 2021 00:40:28 +0200 Subject: [PATCH 2/2] add dependency --- static_map/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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