summary refs log tree commit diff stats
path: root/src/data/effective.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-09-13 23:21:23 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-09-13 23:21:23 -0300
commitf0ccda7d7402c532bce560fe743c07d1444b80ce (patch)
tree58f10b8b277a9f393a5b9e7b113d4a58ac6726ee /src/data/effective.rs
parent22e7a62e9529cc4a59941e8342f69d0f6ded60f9 (diff)
Ditch Duration in DataSourceBase rustgan
Diffstat (limited to 'src/data/effective.rs')
-rw-r--r--src/data/effective.rs8
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()
             }