Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make IssueHandler::delete_label return () #460

Closed
wants to merge 2 commits into from

Conversation

chorman0773
Copy link

Note: This may require a major version increase.
Fixes #456

let route = format!(
"/repos/{owner}/{repo}/labels/{name}",
owner = self.owner,
repo = self.repo,
name = name.as_ref(),
);

self.crab.delete(route, None::<&()>).await
let _: crate::from_response::NoBody = self.crab.delete(route, None::<&()>).await?;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need that, you can just write the following

crate::map_github_error(self.crab._delete(uri, None::<&()>).await?)
    .await
    .map(drop)

@XAMPPRocky
Copy link
Owner

@chorman0773 Friendly ping 🙂

@manchicken
Copy link
Contributor

It looks like this was fixed by #503.

@XAMPPRocky
Copy link
Owner

Thank you for your PR!

@XAMPPRocky XAMPPRocky closed this Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IssueHandle::delete_label panics
3 participants