Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl<'octo> AppsRequestHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn installations(&self) -> installations::InstallationsRequestBuilder {
pub fn installations(&self) -> installations::InstallationsRequestBuilder<'_, '_> {
installations::InstallationsRequestBuilder::new(self)
}

Expand Down
10 changes: 8 additions & 2 deletions src/api/gists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ impl<'octo> GistsHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn list_commits(&self, gist_id: impl Into<String>) -> list_commits::ListCommitsBuilder {
pub fn list_commits(
&self,
gist_id: impl Into<String>,
) -> list_commits::ListCommitsBuilder<'_, '_> {
list_commits::ListCommitsBuilder::new(self, gist_id.into())
}

Expand Down Expand Up @@ -353,7 +356,10 @@ impl<'octo> GistsHandler<'octo> {
/// ```
///
/// [docs]: https://docs.github.com/en/rest/gists/gists?apiVersion=2022-11-28#list-gist-forks
pub fn list_forks(&self, gist_id: impl Into<String>) -> list_forks::ListGistForksBuilder {
pub fn list_forks(
&self,
gist_id: impl Into<String>,
) -> list_forks::ListGistForksBuilder<'_, '_> {
list_forks::ListGistForksBuilder::new(self, gist_id.into())
}

Expand Down
6 changes: 3 additions & 3 deletions src/api/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl IssueHandler<'_> {
/// # Ok(())
/// # }
/// ```
pub fn list_assignees(&self) -> ListAssigneesBuilder {
pub fn list_assignees(&self) -> ListAssigneesBuilder<'_, '_> {
ListAssigneesBuilder::new(self)
}
}
Expand Down Expand Up @@ -469,7 +469,7 @@ impl IssueHandler<'_> {
/// # Ok(())
/// # }
/// ```
pub fn list_labels_for_issue(&self, number: u64) -> ListLabelsForIssueBuilder {
pub fn list_labels_for_issue(&self, number: u64) -> ListLabelsForIssueBuilder<'_, '_> {
ListLabelsForIssueBuilder::new(self, number)
}

Expand All @@ -487,7 +487,7 @@ impl IssueHandler<'_> {
/// # Ok(())
/// # }
/// ```
pub fn list_labels_for_repo(&self) -> ListLabelsForRepoBuilder {
pub fn list_labels_for_repo(&self) -> ListLabelsForRepoBuilder<'_, '_> {
ListLabelsForRepoBuilder::new(self)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/api/orgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl<'octo> OrgHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn list_repos(&self) -> list_repos::ListReposBuilder {
pub fn list_repos(&self) -> list_repos::ListReposBuilder<'_, '_> {
list_repos::ListReposBuilder::new(self)
}

Expand Down Expand Up @@ -222,7 +222,7 @@ impl<'octo> OrgHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn list_members(&self) -> list_members::ListOrgMembersBuilder {
pub fn list_members(&self) -> list_members::ListOrgMembersBuilder<'_, '_> {
list_members::ListOrgMembersBuilder::new(self)
}

Expand Down
12 changes: 9 additions & 3 deletions src/api/projects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<'octo> ProjectHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn delete_project(&self, project_id: impl Into<u32>) -> DeleteProjectBuilder {
pub fn delete_project(&self, project_id: impl Into<u32>) -> DeleteProjectBuilder<'_, '_> {
DeleteProjectBuilder::new(self, project_id.into())
}

Expand All @@ -113,7 +113,10 @@ impl<'octo> ProjectHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn create_user_project(&self, username: impl Into<String>) -> CreateUserProjectBuilder {
pub fn create_user_project(
&self,
username: impl Into<String>,
) -> CreateUserProjectBuilder<'_, '_> {
CreateUserProjectBuilder::new(self, username.into())
}

Expand All @@ -134,7 +137,10 @@ impl<'octo> ProjectHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn list_user_projects(&self, username: impl Into<String>) -> ListUserProjectsBuilder {
pub fn list_user_projects(
&self,
username: impl Into<String>,
) -> ListUserProjectsBuilder<'_, '_> {
ListUserProjectsBuilder::new(self, username.into())
}

Expand Down
10 changes: 5 additions & 5 deletions src/api/pulls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl<'octo> PullRequestHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn list(&self) -> list::ListPullRequestsBuilder {
pub fn list(&self) -> list::ListPullRequestsBuilder<'_, '_> {
list::ListPullRequestsBuilder::new(self)
}

Expand Down Expand Up @@ -373,7 +373,7 @@ impl<'octo> PullRequestHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn list_comments(&self, pr: Option<u64>) -> comment::ListCommentsBuilder {
pub fn list_comments(&self, pr: Option<u64>) -> comment::ListCommentsBuilder<'_, '_> {
comment::ListCommentsBuilder::new(self, pr)
}

Expand All @@ -391,7 +391,7 @@ impl<'octo> PullRequestHandler<'octo> {
/// comment
/// }
/// ```
pub fn comment(&self, comment_id: CommentId) -> comment::CommentBuilder {
pub fn comment(&self, comment_id: CommentId) -> comment::CommentBuilder<'_, '_> {
comment::CommentBuilder::new(self, comment_id)
}

Expand All @@ -409,7 +409,7 @@ impl<'octo> PullRequestHandler<'octo> {
note = "specific PR builder transitioned to pr_review_actions, pr_commits, reply_to_comment"
)]
//FIXME: remove?
pub fn pull_number(&self, pull_nr: u64) -> SpecificPullRequestBuilder {
pub fn pull_number(&self, pull_nr: u64) -> SpecificPullRequestBuilder<'_, '_> {
SpecificPullRequestBuilder::new(self, pull_nr)
}

Expand Down Expand Up @@ -499,7 +499,7 @@ impl<'octo> PullRequestHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn merge(&self, pr: u64) -> merge::MergePullRequestsBuilder {
pub fn merge(&self, pr: u64) -> merge::MergePullRequestsBuilder<'_, '_> {
merge::MergePullRequestsBuilder::new(self, pr)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/pulls/specific_pr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<'octo, 'b> SpecificPullRequestBuilder<'octo, 'b> {
/// Ok(())
/// }
/// ```
pub fn comment(&self, comment_id: CommentId) -> SpecificPullRequestCommentBuilder {
pub fn comment(&self, comment_id: CommentId) -> SpecificPullRequestCommentBuilder<'_, '_> {
SpecificPullRequestCommentBuilder::new(self.handler, self.pr_number, comment_id)
}
}
6 changes: 5 additions & 1 deletion src/api/repos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,11 @@ impl<'octo> RepoHandler<'octo> {
}

/// Create a status for a specified commit in the specified repository.
pub fn create_status(&self, sha: String, state: models::StatusState) -> CreateStatusBuilder {
pub fn create_status(
&self,
sha: String,
state: models::StatusState,
) -> CreateStatusBuilder<'_, '_> {
CreateStatusBuilder::new(self, sha, state)
}

Expand Down
16 changes: 10 additions & 6 deletions src/api/teams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl<'octo> TeamHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn create(&self, name: impl Into<String>) -> CreateTeamBuilder {
pub fn create(&self, name: impl Into<String>) -> CreateTeamBuilder<'_, '_, '_, '_> {
CreateTeamBuilder::new(self, name.into())
}

Expand All @@ -106,7 +106,11 @@ impl<'octo> TeamHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn edit(&self, team_slug: impl Into<String>, name: impl Into<String>) -> EditTeamBuilder {
pub fn edit(
&self,
team_slug: impl Into<String>,
name: impl Into<String>,
) -> EditTeamBuilder<'_, '_> {
EditTeamBuilder::new(self, team_slug.into(), name.into())
}

Expand Down Expand Up @@ -146,13 +150,13 @@ impl<'octo> TeamHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn list_children(&self, team_slug: impl Into<String>) -> ListChildTeamsBuilder {
pub fn list_children(&self, team_slug: impl Into<String>) -> ListChildTeamsBuilder<'_, '_> {
ListChildTeamsBuilder::new(self, team_slug.into())
}

/// Creates a new `TeamRepoHandler` for the specified team,
/// that allows you to manage this team's repositories.
pub fn repos(&self, team_slug: impl Into<String>) -> TeamRepoHandler {
pub fn repos(&self, team_slug: impl Into<String>) -> TeamRepoHandler<'_> {
TeamRepoHandler::new(self.crab, self.owner.clone(), team_slug.into())
}

Expand All @@ -170,7 +174,7 @@ impl<'octo> TeamHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn members(&self, team_slug: impl Into<String>) -> ListTeamMembersBuilder {
pub fn members(&self, team_slug: impl Into<String>) -> ListTeamMembersBuilder<'_, '_> {
ListTeamMembersBuilder::new(self, team_slug.into())
}

Expand All @@ -188,7 +192,7 @@ impl<'octo> TeamHandler<'octo> {
/// # Ok(())
/// # }
/// ```
pub fn invitations(&self, team_slug: impl Into<String>) -> ListTeamInvitationsBuilder {
pub fn invitations(&self, team_slug: impl Into<String>) -> ListTeamInvitationsBuilder<'_, '_> {
ListTeamInvitationsBuilder::new(self, team_slug.into())
}
}
6 changes: 3 additions & 3 deletions src/api/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ impl<'octo> UserHandler<'octo> {
}

/// List this users that follow this user
pub fn followers(&self) -> ListUserFollowerBuilder {
pub fn followers(&self) -> ListUserFollowerBuilder<'_, '_> {
ListUserFollowerBuilder::new(self)
}

/// List this user is following
pub fn following(&self) -> ListUserFollowingBuilder {
pub fn following(&self) -> ListUserFollowingBuilder<'_, '_> {
ListUserFollowingBuilder::new(self)
}

Expand All @@ -77,7 +77,7 @@ impl<'octo> UserHandler<'octo> {

/// API for listing blocked users
/// you must pass authentication information with your requests
pub fn blocks(&self) -> BlockedUsersBuilder {
pub fn blocks(&self) -> BlockedUsersBuilder<'_, '_> {
BlockedUsersBuilder::new(self)
}

Expand Down
Loading
Loading