summaryrefslogtreecommitdiffstats
path: root/src/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/builder.rs')
-rw-r--r--src/builder.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 7a26151..f429ad4 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -181,6 +181,7 @@ impl ConfigBuilder<DefaultState> {
/// Registers new [`Source`] in this builder.
///
/// 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) -> Self
where
T: Source + Send + Sync + 'static,
@@ -270,6 +271,7 @@ impl ConfigBuilder<AsyncState> {
/// Registers new [`Source`] in this builder.
///
/// 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>
where
T: Source + Send + Sync + 'static,
@@ -281,6 +283,7 @@ impl ConfigBuilder<AsyncState> {
/// Registers new [`AsyncSource`] in this builder.
///
/// 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>
where
T: AsyncSource + Send + Sync + 'static,