Skip to content

Commit 767bd35

Browse files
committed
Deprecate AsyncPoolSinkBuilder::formatter method
1 parent 28215ff commit 767bd35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spdlog/src/sink/async_sink/async_pool_sink.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ impl AsyncPoolSinkBuilder {
209209
/// Specifies a formatter.
210210
///
211211
/// This parameter is **optional**.
212+
#[deprecated(
213+
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",
214+
since = "0.5.2"
215+
)]
212216
#[must_use]
213217
pub fn formatter<F>(self, formatter: F) -> Self
214218
where

0 commit comments

Comments
 (0)