(
&mut self,
client: &Client,
repo_id: RepoId,
id: &ExternalId,
topic: &RepoTopic,
)
| 725 | } |
| 726 | |
| 727 | pub fn remove_synonyms( |
| 728 | &mut self, |
| 729 | client: &Client, |
| 730 | repo_id: RepoId, |
| 731 | id: &ExternalId, |
| 732 | topic: &RepoTopic, |
| 733 | ) -> Result<()> { |
| 734 | self.synonym_indexes( |
| 735 | client, |
| 736 | repo_id, |
| 737 | topic.metadata.synonyms().iter(), |
| 738 | |index, token, name| { |
| 739 | index.remove(id, token.to_owned(), name)?; |
| 740 | Ok(()) |
| 741 | }, |
| 742 | )?; |
| 743 | |
| 744 | Ok(()) |
| 745 | } |
| 746 | |
| 747 | pub fn files(&self) -> Result<Vec<(RepoId, PathBuf, String)>> { |
| 748 | let mut files = vec![]; |
no test coverage detected