(&self, f: &mut std::fmt::Formatter<'_>)
| 45 | |
| 46 | impl std::fmt::Display for McpStatus { |
| 47 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 48 | match self { |
| 49 | McpStatus::Connected => write!(f, "connected"), |
| 50 | McpStatus::Disabled => write!(f, "disabled"), |
| 51 | McpStatus::Failed { error } => write!(f, "failed: {error}"), |
| 52 | McpStatus::NeedsAuth => write!(f, "needs_auth"), |
| 53 | McpStatus::NeedsClientRegistration { error } => { |
| 54 | write!(f, "needs_client_registration: {error}") |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // --------------------------------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected