(value: git::Object)
| 35 | |
| 36 | impl From<git::Object> for SearchMatch { |
| 37 | fn from(value: git::Object) -> Self { |
| 38 | match value { |
| 39 | git::Object::Link(link) => SearchMatch::Link(Link(link)), |
| 40 | git::Object::Topic(topic) => SearchMatch::Topic(Topic(topic)), |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | impl TryFrom<git::Object> for Link { |