Remove Box on callback traits.

This commit is contained in:
Stephen Chung
2022-01-27 23:55:32 +08:00
parent 64de20bcd3
commit e476929597
7 changed files with 66 additions and 53 deletions

View File

@@ -178,7 +178,7 @@ impl GlobalRuntimeState<'_> {
/// [modules][Module].
#[inline]
#[must_use]
pub fn get_iter(&self, id: TypeId) -> Option<IteratorFn> {
pub fn get_iter(&self, id: TypeId) -> Option<&IteratorFn> {
self.modules
.iter()
.rev()