Skip to content

Commit 7fc90e9

Browse files
committed
use 'Self' to refer to own type
1 parent 6494c62 commit 7fc90e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl ConfigBuilder<AsyncState> {
271271
/// Registers new [`Source`] in this builder.
272272
///
273273
/// Calling this method does not invoke any I/O. [`Source`] is only saved in internal register for later use.
274-
pub fn add_source<T>(mut self, source: T) -> ConfigBuilder<AsyncState>
274+
pub fn add_source<T>(mut self, source: T) -> Self
275275
where
276276
T: Source + Send + Sync + 'static,
277277
{
@@ -282,7 +282,7 @@ impl ConfigBuilder<AsyncState> {
282282
/// Registers new [`AsyncSource`] in this builder.
283283
///
284284
/// Calling this method does not invoke any I/O. [`AsyncSource`] is only saved in internal register for later use.
285-
pub fn add_async_source<T>(mut self, source: T) -> ConfigBuilder<AsyncState>
285+
pub fn add_async_source<T>(mut self, source: T) -> Self
286286
where
287287
T: AsyncSource + Send + Sync + 'static,
288288
{

0 commit comments

Comments
 (0)