Skip to content

Commit

Permalink
Refactor tydecls key check (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketasaja authored Jul 2, 2024
1 parent 5d53f79 commit 07eb854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zap/src/parser/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ impl<'src> Converter<'src> {
"unknown" => Ty::Opt(Box::new(Ty::Unknown)),

_ => {
if self.tydecls.get(name).is_none() {
if !self.tydecls.contains_key(name) {
self.report(Report::AnalyzeUnknownTypeRef {
span: ref_ty.span(),
name,
Expand Down

0 comments on commit 07eb854

Please sign in to comment.