No need for extra qualifier

This commit is contained in:
Ayaz Hafiz 2023-06-09 15:43:06 -05:00
parent 4d65db22d2
commit c57d254205
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -31,10 +31,7 @@ impl<'a, 'ctx> Scope<'a, 'ctx> {
}
}
pub(crate) fn load_symbol_and_layout(
&self,
symbol: &Symbol,
) -> (BasicValueEnum<'ctx>, InLayout<'a>) {
pub fn load_symbol_and_layout(&self, symbol: &Symbol) -> (BasicValueEnum<'ctx>, InLayout<'a>) {
match self.symbols.get(symbol) {
Some((layout, ptr)) => (*ptr, *layout),
None => panic!("There was no entry for {:?} in scope {:?}", symbol, self),