diff --git a/v0.5/fastn-unresolved/src/lib.rs b/v0.5/fastn-unresolved/src/lib.rs index 857b3e476..857682dab 100644 --- a/v0.5/fastn-unresolved/src/lib.rs +++ b/v0.5/fastn-unresolved/src/lib.rs @@ -184,7 +184,8 @@ impl TryFrom for Kind { match ident { fastn_section::IdentifierReference::Local(v) => match v.str() { "integer" => Ok(Kind::Integer), - _ => todo!(), + "string" => Ok(Kind::String), + t => todo!("{t}"), }, _ => unreachable!(), } diff --git a/v0.5/fastn-unresolved/src/parser/import.rs b/v0.5/fastn-unresolved/src/parser/import.rs index 172d86c7d..e72dcb4d5 100644 --- a/v0.5/fastn-unresolved/src/parser/import.rs +++ b/v0.5/fastn-unresolved/src/parser/import.rs @@ -81,7 +81,7 @@ fn add_export_and_exposing( Export::All => todo!(), Export::Things(things) => { for thing in things { - let alias = thing.alias.as_ref().unwrap_or_else(|| &thing.name).str(); + let alias = thing.alias.as_ref().unwrap_or(&thing.name).str(); let symbol = i.module.symbol(thing.name.str(), arena); add_to_document_alias(document, arena, alias, fastn_section::SoM::Symbol(symbol));