Skip to content

Commit 7c86694

Browse files
committed
Deprecate AsyncPoolSinkBuilder::formatter method
1 parent 771243d commit 7c86694

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spdlog/src/sink/async_sink/async_pool_sink.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@ impl AsyncPoolSinkBuilder {
206206
self
207207
}
208208

209-
/// Specifies a formatter.
210-
///
211-
/// This parameter is **optional**.
209+
#[doc(hidden)]
210+
#[deprecated(
211+
note = "AsyncPoolSink does not have its own formatter, this method has no effect, it was added by accident and may be removed in the future",
212+
since = "0.5.2"
213+
)]
212214
#[must_use]
213215
pub fn formatter<F>(self, formatter: F) -> Self
214216
where

0 commit comments

Comments
 (0)