(&self, ctx: &Context<'_>)
| 64 | } |
| 65 | |
| 66 | async fn link(&self, ctx: &Context<'_>) -> Result<Link> { |
| 67 | let link_id = self.0.link_id(); |
| 68 | |
| 69 | let link: Option<git::Link> = ctx |
| 70 | .data_unchecked::<Store>() |
| 71 | .fetch_link(link_id.to_owned()) |
| 72 | .await?; |
| 73 | |
| 74 | match link { |
| 75 | Some(link) => Ok(link.into()), |
| 76 | None => Err(Error::NotFound(format!("parent link not found: {link_id}"))), |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | async fn link_id(&self) -> String { |
| 81 | self.0.link_id().to_string() |
nothing calls this directly
no test coverage detected