(&mut self, topic: &RepoTopic)
| 75 | } |
| 76 | |
| 77 | fn visit_child_topic(&mut self, topic: &RepoTopic) -> Result<()> { |
| 78 | let line = format!("- [{}]({})\n", topic.name(Locale::EN), topic.topic_id()); |
| 79 | self.buf.push_str(&line); |
| 80 | |
| 81 | for topic in &topic.parent_topics { |
| 82 | self.visit_child_parent_topic(topic)?; |
| 83 | } |
| 84 | |
| 85 | Ok(()) |
| 86 | } |
| 87 | |
| 88 | fn visit_child_link(&mut self, link: &RepoLink) -> Result<()> { |
| 89 | let line = format!("- [{}]({})\n", link.title(), link.url()); |
no test coverage detected