diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-04-24 17:37:04 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-04-24 17:50:06 +0200 |
commit | d24e9f037fdb86bd9f3618e1e95dfcf2e7741f12 (patch) | |
tree | eb99489953ae4a6b9004b3ede5ce0e55654e3268 /src/buildable.rs | |
parent | 3996673b3cd198c7e80bfa51d13b2b771657d32a (diff) |
Make Backend need Copy, so we can pass it around
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/buildable.rs')
-rw-r--r-- | src/buildable.rs | 6 |
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() } |