summaryrefslogtreecommitdiff
path: root/symbolmacro
diff options
context:
space:
mode:
Diffstat (limited to 'symbolmacro')
-rw-r--r--symbolmacro/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/symbolmacro/src/lib.rs b/symbolmacro/src/lib.rs
index f99ccd9..636c786 100644
--- a/symbolmacro/src/lib.rs
+++ b/symbolmacro/src/lib.rs
@@ -39,14 +39,14 @@ pub fn make_symbols(_item: TokenStream) -> TokenStream {
let symbols = fetchsymbols();
format!(
- "fn symbol(key: &str) -> Option<&'static str> {{
+ "fn symbol(key: &str) -> Option<char> {{
match key {{
{}
_ => None
}}
}}",
symbols.iter()
- .map(|(k,v)| format!("\"{}\" => Some(\"{}\"),",k,v))
+ .map(|(k,v)| format!("\"{}\" => Some(\'{}\'),",k,v))
.collect::<Vec<_>>()
.join("\n")
).parse().unwrap()