(&mut self, topic: &ParentTopic)
| 97 | } |
| 98 | |
| 99 | fn visit_parent_topic(&mut self, topic: &ParentTopic) -> Result<()> { |
| 100 | match &self.git.fetch(self.repo_id, &topic.id) { |
| 101 | Some(RepoObject::Topic(topic)) => { |
| 102 | let line = format!("- [{}]({})\n", topic.name(Locale::EN), topic.topic_id()); |
| 103 | self.buf.push_str(&line); |
| 104 | } |
| 105 | other => return Err(Error::Repo(format!("expected a topic: {other:?}"))), |
| 106 | } |
| 107 | Ok(()) |
| 108 | } |
| 109 | |
| 110 | fn visit_topic_child(&mut self, child: &TopicChild) -> Result<()> { |
| 111 | match &self.git.fetch(self.repo_id, &child.id) { |
no test coverage detected