| 37 | /// Turns a closure `f: Fn(&mut Formatter) -> Result` into `fmt::Display`. |
| 38 | pub(super) fn fmt_fn(f: impl Fn(&mut Formatter) -> Result) -> impl Display { |
| 39 | struct FDisplay<F>(F); |
| 40 | impl<F: Fn(&mut Formatter) -> Result> Display for FDisplay<F> { |
| 41 | fn fmt(&self, f: &mut Formatter<'_>) -> Result { |
| 42 | (self.0)(f) |
no outgoing calls
no test coverage detected
searching dependent graphs…