diff options
Diffstat (limited to 'src/data/effective.rs')
-rw-r--r-- | src/data/effective.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/data/effective.rs b/src/data/effective.rs index 54b524f..bcfff6e 100644 --- a/src/data/effective.rs +++ b/src/data/effective.rs @@ -26,8 +26,6 @@ use std::collections::BTreeSet; use std::collections::HashSet; -use std::error; -use std::time::Duration; use impl_trait::impl_trait; @@ -35,6 +33,7 @@ use super::DataSource; use super::DataSourceBase; use super::Kind; use super::OverridableKind; +use super::Update; #[cfg(test)] mod tests; @@ -115,10 +114,7 @@ impl_trait! { /// Forwards to the inner [`DataSourceBase`]. impl trait DataSourceBase { - fn update(&mut self) -> ( - Option<Duration>, - Result<(), Box<dyn error::Error + Send + Sync + 'static>>, - ) { + fn update(&mut self) -> Update { self.0.update() } |