File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2319,6 +2319,8 @@ pub trait Itertools: Iterator {
2319
2319
/// with `sep` inserted between each element.
2320
2320
///
2321
2321
/// **Panics** if the formatter helper is formatted more than once.
2322
+ /// ⚠ This can happen discreetly and be hard to debug if used in
2323
+ /// _macros of some logging frameworks_ like `tracing`! ⚠
2322
2324
///
2323
2325
/// ```
2324
2326
/// use itertools::Itertools;
@@ -2339,15 +2341,17 @@ pub trait Itertools: Iterator {
2339
2341
///
2340
2342
/// This is a customizable version of [`.format()`](Itertools::format).
2341
2343
///
2344
+ /// **Panics** if the formatter helper is formatted more than once.
2345
+ /// ⚠ This can happen discreetly and be hard to debug if used in
2346
+ /// _macros of some logging frameworks_ like `tracing`! ⚠
2347
+ ///
2342
2348
/// The supplied closure `format` is called once per iterator element,
2343
2349
/// with two arguments: the element and a callback that takes a
2344
2350
/// `&Display` value, i.e. any reference to type that implements `Display`.
2345
2351
///
2346
2352
/// Using `&format_args!(...)` is the most versatile way to apply custom
2347
2353
/// element formatting. The callback can be called multiple times if needed.
2348
2354
///
2349
- /// **Panics** if the formatter helper is formatted more than once.
2350
- ///
2351
2355
/// ```
2352
2356
/// use itertools::Itertools;
2353
2357
///
You can’t perform that action at this time.
0 commit comments