(&self, f: &mut fmt::Formatter<'_>)
| 615 | |
| 616 | impl fmt::Display for Provenance { |
| 617 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 618 | write!(f, "{}", self.summary())?; |
| 619 | if let Some(ref mode) = self.agent_mode { |
| 620 | write!(f, " [{}]", mode)?; |
| 621 | } |
| 622 | if self.has_tokens() { |
| 623 | write!(f, " - {}", self.tokens)?; |
| 624 | } |
| 625 | if self.has_cost() { |
| 626 | write!(f, " - {}", self.cost)?; |
| 627 | } |
| 628 | if let Some(steps) = self.step_count { |
| 629 | write!(f, " ({} steps)", steps)?; |
| 630 | } |
| 631 | if self.reasoning_signature.is_some() { |
| 632 | write!(f, " ✓signed")?; |
| 633 | } |
| 634 | Ok(()) |
| 635 | } |
| 636 | } |
nothing calls this directly
no test coverage detected