Skip to content

Commit

Permalink
Fix clippy warnings (rust 1.37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoscout committed Aug 29, 2019
1 parent ed318ec commit addcba4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ pub struct Config {
pub wait_sleep_interval: u64,
}

pub fn wait(sleep: &mut crate::sleeper::Sleeper, config: &Config, on_timeout: &mut FnMut()) {
pub fn wait(
sleep: &mut dyn crate::sleeper::Sleeper,
config: &Config,
on_timeout: &mut dyn FnMut(),
) {
println!("Docker-compose-wait starting with configuration:");
println!("------------------------------------------------");
println!(" - Hosts to be waiting for: [{}]", config.hosts);
Expand Down

0 comments on commit addcba4

Please sign in to comment.