Method
new
(repo_id: RepoId, repo_topic: RepoTopic)
Source from the content-addressed store, hash-verified
| 170 | |
| 171 | impl RepoTopics { |
| 172 | fn new(repo_id: RepoId, repo_topic: RepoTopic) -> Self { |
| 173 | let mut references: HashMap<RepoId, RepoTopic> = HashMap::new(); |
| 174 | references.insert(repo_id, repo_topic.clone()); |
| 175 | Self { |
| 176 | repo_topic, |
| 177 | references, |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | fn get_mut(&mut self, repo_id: RepoId) -> &mut RepoTopic { |
| 182 | let topics = &mut self.references; |
Callers
nothing calls this directly
Tested by
no test coverage detected