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, 1 insertions, 3 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 6f928c6..df0b728 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -87,6 +87,7 @@ use crate::{config::Config, path::Expression, source::Source, value::Value};
/// let mut builder = ConfigBuilder::<DefaultState>::default();
/// ```
#[derive(Debug, Clone, Default)]
+#[must_use]
pub struct ConfigBuilder<St: BuilderState> {
defaults: Map<Expression, Value>,
overrides: Map<Expression, Value>,
@@ -201,7 +202,6 @@ 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,
@@ -291,7 +291,6 @@ 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) -> Self
where
T: Source + Send + Sync + 'static,
@@ -303,7 +302,6 @@ 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) -> Self
where
T: AsyncSource + Send + Sync + 'static,