Skip to content

Commit 028be02

Browse files
committed
no need for separate variable
1 parent 8ceeccc commit 028be02

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/plugin.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,7 @@ impl<C: DbConnection<Module = M> + DbContext + Send + Sync, M: SpacetimeModule<D
342342
self.table_registrations
343343
.push(Arc::new(register_event_table::<TTable::Row>));
344344
self.table_bindings.push(Arc::new(|world, db| {
345-
let table = TTable::get(db);
346-
bind_insert::<TTable::Row, _>(world, &table);
345+
bind_insert::<TTable::Row, _>(world, &TTable::get(db));
347346
}));
348347
self
349348
}

0 commit comments

Comments
 (0)