Skip to content

Commit

Permalink
No const .expect
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Dec 24, 2024
1 parent 4950c7c commit 0f16ebd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ impl NodeWithScopeKind {
}
}

pub const fn expect_function(&self) -> &ast::StmtFunctionDef {
pub fn expect_function(&self) -> &ast::StmtFunctionDef {
self.as_function().expect("expected function")
}

Expand Down

0 comments on commit 0f16ebd

Please sign in to comment.