MCPcopy Create free account
hub / github.com/emwalker/digraph / visit_link

Method visit_link

backend/src/bin/show.rs:42–56  ·  view source on GitHub ↗
(&mut self, link: &RepoLink)

Source from the content-addressed store, hash-verified

40 }
41
42 fn visit_link(&mut self, link: &RepoLink) -> Result<()> {
43 let s = format! {r#"
44Link: [{}]({})
45Parent 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
59impl<'r> ConsoleOutput<'r> {

Callers 1

acceptMethod · 0.80

Calls 1

visit_parent_topicMethod · 0.80

Tested by

no test coverage detected