upgrade rust to 1.37 (#5611)

This commit is contained in:
Rob Walker
2019-08-23 08:55:51 -07:00
committed by GitHub
parent aeaa0feb61
commit 52f6da5cee
10 changed files with 14 additions and 16 deletions

View File

@@ -72,11 +72,11 @@ impl Default for ValidatorConfig {
#[derive(Default)]
pub struct ValidatorExit {
exits: Vec<Box<FnOnce() + Send + Sync>>,
exits: Vec<Box<dyn FnOnce() + Send + Sync>>,
}
impl ValidatorExit {
pub fn register_exit(&mut self, exit: Box<FnOnce() -> () + Send + Sync>) {
pub fn register_exit(&mut self, exit: Box<dyn FnOnce() -> () + Send + Sync>) {
self.exits.push(exit);
}