From d08a817571038431f937e180bbdf0f08398f2162 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 25 Apr 2016 15:15:03 -0400 Subject: rust: fix bug with symbol vs. identifier repr --- rust/spectrum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/spectrum.rs b/rust/spectrum.rs index 19921a0..5e1ed83 100644 --- a/rust/spectrum.rs +++ b/rust/spectrum.rs @@ -233,7 +233,7 @@ fn scheme_repr(ast: &SchemeExpr) -> Result { &SchemeExpr::SchemeBuiltin(ref b)=> Ok(b.clone()), &SchemeExpr::SchemeStr(ref s)=> Ok(s.clone()), &SchemeExpr::SchemeSymbol(ref s)=> Ok(s.clone()), - &SchemeExpr::SchemeIdentifier(ref s)=> Ok("'".to_string() + &s), + &SchemeExpr::SchemeIdentifier(ref s)=> Ok(s.to_string()), &SchemeExpr::SchemeProcedure(ref binds, ref body, _) => { let mut ret = "(lambda (".to_string(); for bind in binds { -- cgit v1.2.3