Skip to content

Commit

Permalink
Cleanup get_issues() declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
nbigaouette committed Jan 1, 2017
1 parent 13c58d5 commit f61e002
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gitlab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,7 @@ impl GitLab {
///
/// Because we need to search (and thus query the GitLab server possibly multiple times), this
/// _can_ be a slow operation if there is many issues in the project.
pub fn get_issue<'a>(&'a mut self, namespace: &str, name: &str, iid: i64) -> Result<::Issue> {
// let issues = self.issues().project(project.id).list().chain_err(...)?;
// let mrs = self.merge_requests(project.id).list().chain_err(...)?;
pub fn get_issue(&self, namespace: &str, name: &str, iid: i64) -> Result<::Issue> {
self.high_level_get(namespace, name, iid, |project_id| self.issues().project(project_id))
}

Expand Down

0 comments on commit f61e002

Please sign in to comment.