Exhaustive mapping from the change-source tier enum: the compiler forces every tier variant into the closed telemetry code set.
(kind: crate::change_source::ChangeSourceKind)
| 570 | /// Exhaustive mapping from the change-source tier enum: the compiler |
| 571 | /// forces every tier variant into the closed telemetry code set. |
| 572 | pub fn from_kind(kind: crate::change_source::ChangeSourceKind) -> Self { |
| 573 | match kind { |
| 574 | crate::change_source::ChangeSourceKind::Scan => Self::Scan, |
| 575 | crate::change_source::ChangeSourceKind::Fsmonitor => Self::Fsmonitor, |
| 576 | crate::change_source::ChangeSourceKind::Watchman => Self::Watchman, |
| 577 | crate::change_source::ChangeSourceKind::Custom => Self::Custom, |
| 578 | } |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | impl FallbackReasonCode { |
nothing calls this directly
no outgoing calls
no test coverage detected