(&mut self, repo_id: RepoId)
| 179 | } |
| 180 | |
| 181 | fn get_mut(&mut self, repo_id: RepoId) -> &mut RepoTopic { |
| 182 | let topics = &mut self.references; |
| 183 | |
| 184 | topics.entry(repo_id).or_insert_with(|| { |
| 185 | let id = self.repo_topic.topic_id().to_owned(); |
| 186 | |
| 187 | RepoTopic { |
| 188 | api_version: API_VERSION.to_string(), |
| 189 | metadata: RepoTopicMetadata { |
| 190 | added: self.repo_topic.added(), |
| 191 | id, |
| 192 | details: None, |
| 193 | }, |
| 194 | parent_topics: BTreeSet::new(), |
| 195 | children: BTreeSet::new(), |
| 196 | } |
| 197 | }) |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | fn persist_topic( |
no test coverage detected