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

Method visit_parent_topic

backend/src/bin/show.rs:99–108  ·  view source on GitHub ↗
(&mut self, topic: &ParentTopic)

Source from the content-addressed store, hash-verified

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) {

Callers 2

visit_topicMethod · 0.80
visit_linkMethod · 0.80

Calls 2

RepoClass · 0.85
fetchMethod · 0.45

Tested by

no test coverage detected