summaryrefslogtreecommitdiffstats
path: root/src/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/builder.rs')
-rw-r--r--src/builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/builder.rs b/src/builder.rs
index f429ad4..4942b47 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -272,7 +272,7 @@ impl ConfigBuilder<AsyncState> {
///
/// Calling this method does not invoke any I/O. [`Source`] is only saved in internal register for later use.
#[must_use]
- pub fn add_source<T>(mut self, source: T) -> ConfigBuilder<AsyncState>
+ pub fn add_source<T>(mut self, source: T) -> Self
where
T: Source + Send + Sync + 'static,
{
@@ -284,7 +284,7 @@ impl ConfigBuilder<AsyncState> {
///
/// Calling this method does not invoke any I/O. [`AsyncSource`] is only saved in internal register for later use.
#[must_use]
- pub fn add_async_source<T>(mut self, source: T) -> ConfigBuilder<AsyncState>
+ pub fn add_async_source<T>(mut self, source: T) -> Self
where
T: AsyncSource + Send + Sync + 'static,
{