(&mut self, link: &RepoLink)
| 40 | } |
| 41 | |
| 42 | fn visit_link(&mut self, link: &RepoLink) -> Result<()> { |
| 43 | let s = format! {r#" |
| 44 | Link: [{}]({}) |
| 45 | Parent topics: |
| 46 | "#, |
| 47 | link.title(), link.url()}; |
| 48 | |
| 49 | self.buf.push_str(&s); |
| 50 | |
| 51 | for topic in &link.parent_topics { |
| 52 | self.visit_parent_topic(topic)?; |
| 53 | } |
| 54 | |
| 55 | Ok(()) |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | impl<'r> ConsoleOutput<'r> { |
no test coverage detected