(self, context: RepoId)
| 102 | } |
| 103 | |
| 104 | pub fn finalize(self, context: RepoId) -> Result<Object> { |
| 105 | match self { |
| 106 | Self::Topic { key, map } => { |
| 107 | let (details, display_topic) = map.topic_details(context)?; |
| 108 | Ok(Object::Topic(Topic { |
| 109 | key, |
| 110 | display_topic, |
| 111 | repo_topics: details, |
| 112 | _map: map, |
| 113 | })) |
| 114 | } |
| 115 | |
| 116 | Self::Link { key, map } => { |
| 117 | let (details, display_link) = map.link_details(context)?; |
| 118 | Ok(Object::Link(Link { |
| 119 | key, |
| 120 | display_link, |
| 121 | repo_links: details, |
| 122 | _map: map, |
| 123 | })) |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | #[derive(Clone, Default)] |
no test coverage detected