(&self, f: &mut fmt::Formatter<'_>)
| 40 | |
| 41 | impl fmt::Display for ReconcileReport { |
| 42 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 43 | if let Some((remote, local)) = &self.diverged { |
| 44 | write!( |
| 45 | f, |
| 46 | "remote project identity {remote} differs from local {local}; local identity kept" |
| 47 | ) |
| 48 | } else if let Some(adopted) = &self.adopted { |
| 49 | if self.replaced_upgrade { |
| 50 | write!( |
| 51 | f, |
| 52 | "Adopted project identity {adopted} (replaced local placeholder)" |
| 53 | ) |
| 54 | } else { |
| 55 | write!(f, "Adopted project identity {adopted}") |
| 56 | } |
| 57 | } else { |
| 58 | write!(f, "project identity unchanged") |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /// Build a transport record from a fetched identity document: recompute the |
nothing calls this directly
no outgoing calls
no test coverage detected