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 /tests/common/mod.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 'tests/common/mod.rs')
-rw-r--r-- | tests/common/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 26e0066..0ab668a 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -1,6 +1,8 @@ use interactive_object_builder::*; +#[derive(Copy, Clone)] pub struct DummyBackend; + impl Backend for DummyBackend { fn bool_builder(&self) -> Box<dyn ValueBuilder<Output = bool>> { Box::new(BoolValBuilder) |