aboutsummaryrefslogtreecommitdiff
path: root/src/di_container/binding_storage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/di_container/binding_storage.rs')
-rw-r--r--src/di_container/binding_storage.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/di_container/binding_storage.rs b/src/di_container/binding_storage.rs
index 2451791..b3fea6f 100644
--- a/src/di_container/binding_storage.rs
+++ b/src/di_container/binding_storage.rs
@@ -63,6 +63,16 @@ where
}
}
+impl<Provider> Default for DIContainerBindingStorage<Provider>
+where
+ Provider: 'static + ?Sized,
+{
+ fn default() -> Self
+ {
+ Self::new()
+ }
+}
+
#[derive(Debug, PartialEq, Eq, Hash)]
struct BindingId<'opts>
{