Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Jan 19, 2025
1 parent 36b12aa commit 7ebe543
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion v0.5/fastn-unresolved/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ impl TryFrom<fastn_section::Kind> 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!(),
}
Expand Down
2 changes: 1 addition & 1 deletion v0.5/fastn-unresolved/src/parser/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7ebe543

Please sign in to comment.