Add to_ref method for inductor

This commit is contained in:
Paul Hauner 2018-10-20 21:01:35 +11:00
parent 99ce9a2dd2
commit a8179897a9
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -107,6 +107,12 @@ impl<'a> ValidatorInductor<'a> {
}
}
}
fn to_ref(self)
-> &'a Vec<ValidatorRecord>
{
self.validators
}
}