summary refs log tree commit diff stats
path: root/src/data/sources/defaults.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/sources/defaults.rs')
-rw-r--r--src/data/sources/defaults.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/data/sources/defaults.rs b/src/data/sources/defaults.rs
index e8ffa33..7db9e48 100644
--- a/src/data/sources/defaults.rs
+++ b/src/data/sources/defaults.rs
@@ -17,8 +17,6 @@
 //! Data source for compile-time defaults.
 
 use std::collections::BTreeSet;
-use std::error;
-use std::time::Duration;
 
 use impl_trait::impl_trait;
 
@@ -31,6 +29,7 @@ use super::super::kinds::{
     ProjectFork,
     RepoListUrl,
 };
+use super::super::Update;
 
 /// Data source that provides compile-time defaults.
 ///
@@ -49,13 +48,10 @@ pub struct DefaultsDataSource;
 
 impl_trait! {
     impl DefaultsDataSource {
-        /// Always updates successfully, with an unknown refresh interval.
+        /// Always updates with no stats.
         impl trait DataSourceBase {
-            fn update(&mut self) -> (
-                Option<Duration>,
-                Result<(), Box<dyn error::Error + Send + Sync + 'static>>,
-            ) {
-                (None, Ok(()))
+            fn update(&mut self) -> Update {
+                Update::default()
             }
 
             fn exists(&self) -> bool {