(&mut self, repo_id: RepoId, change: &activity::Change)
| 481 | } |
| 482 | |
| 483 | pub fn add_change(&mut self, repo_id: RepoId, change: &activity::Change) -> Result<()> { |
| 484 | self.indexer.add_change(repo_id, &self.client, change)?; |
| 485 | self.changes.push(change.to_owned()); |
| 486 | self.save_change(repo_id, change)?; |
| 487 | Ok(()) |
| 488 | } |
| 489 | |
| 490 | fn check_can_update(&self, repo_id: RepoId) -> Result<()> { |
| 491 | if !self.client.viewer.can_update(repo_id) { |
no test coverage detected