From a0c98ef1104e747e2d40e546dfe9e164ba18b41b Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Sun, 2 Jul 2023 23:36:16 -0400 Subject: [PATCH] style: clean up Container::new and a TODO --- rearch/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rearch/src/lib.rs b/rearch/src/lib.rs index a757efe..ebec8ca 100644 --- a/rearch/src/lib.rs +++ b/rearch/src/lib.rs @@ -73,8 +73,7 @@ fn sync_persist(read: Read, write: Write) { } } */ -// TODO attempt to see if we can rewrite SideEffectRebuilder without Box with new approach -// (but keep the Box 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 @@ -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