summaryrefslogtreecommitdiffstats
path: root/src/buildable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildable.rs')
-rw-r--r--src/buildable.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildable.rs b/src/buildable.rs
index 54e7bbe..0436456 100644
--- a/src/buildable.rs
+++ b/src/buildable.rs
@@ -147,14 +147,14 @@ impl BuildableValue for String {
pub trait BuildableCollection {
fn builder<B>(backend: B) -> Box<dyn CollectionBuilder<Output = Self>>
- where B: Backend;
+ where B: 'static + Backend;
}
impl<T> BuildableCollection for Vec<T>
where T: 'static + BuildableValue,
{
fn builder<B>(backend: B) -> Box<dyn CollectionBuilder<Output = Self>>
- where B: Backend
+ where B: 'static + Backend
{
backend.vec_builder::<T>()
}
@@ -164,7 +164,7 @@ impl<T> BuildableCollection for Option<T>
where T: 'static + BuildableValue + Sized,
{
fn builder<B>(backend: B) -> Box<dyn CollectionBuilder<Output = Option<T>>>
- where B: Backend
+ where B: 'static + Backend
{
backend.option_builder()
}