From a8179897a9db6d7a0ceccd5030d75bf5abfded37 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 20 Oct 2018 21:01:35 +1100 Subject: [PATCH] Add to_ref method for inductor --- beacon_chain/validator_induction/src/inductor.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/beacon_chain/validator_induction/src/inductor.rs b/beacon_chain/validator_induction/src/inductor.rs index b18231c87..dca4421ae 100644 --- a/beacon_chain/validator_induction/src/inductor.rs +++ b/beacon_chain/validator_induction/src/inductor.rs @@ -107,6 +107,12 @@ impl<'a> ValidatorInductor<'a> { } } } + + fn to_ref(self) + -> &'a Vec + { + self.validators + } }