Explorar o código

fix key parsing

Evan Almloff %!s(int64=3) %!d(string=hai) anos
pai
achega
02756f6f92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/rsx_interpreter/src/interperter.rs

+ 1 - 1
packages/rsx_interpreter/src/interperter.rs

@@ -191,7 +191,7 @@ fn build_node<'a>(
                         None,
                     )),
                     Some(lit) => {
-                        let ifmt: IfmtInput = parse_str(&lit.value()).map_err(|err| {
+                        let ifmt: IfmtInput = lit.value().parse().map_err(|err| {
                             Error::ParseError(ParseError::new(err, ctx.location.clone()))
                         })?;
                         let key = bump.alloc(resolve_ifmt(&ifmt, &ctx.captured)?);