Skip to content

Commit

Permalink
style: clean up Container::new and a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryConrad committed Jul 3, 2023
1 parent 03aaed9 commit a0c98ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rearch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ fn sync_persist<Read, Write, R, T>(read: Read, write: Write) {
}
}
*/
// TODO attempt to see if we can rewrite SideEffectRebuilder without Box<dyn> with new approach
// (but keep the Box<dyn FnOnce(...)> inner part the same)
// TODO see if we can change SideEffectRebuilder to not take in generic argument (instead use Any)
// TODO capsule macro
// TODO side effect macro to remove the `move |register| {}` boilerplate
// TODO aggressive garbage collection mode
Expand Down Expand Up @@ -206,7 +205,7 @@ impl Container {
/// Use `read()` to populate and read some capsules!
#[must_use]
pub fn new() -> Self {
Self(Arc::new(ContainerStore::default()))
Self::default()
}

/// Runs the supplied callback with a `ContainerReadTxn` that allows you to read
Expand Down

0 comments on commit a0c98ef

Please sign in to comment.