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

refactor!: make functions infallible where possible #366

Merged

Conversation

thomaseizinger
Copy link
Contributor

While inspecting the code in search for when constructing a new Tunn might fail I noticed that it can actually never fail.

@thomaseizinger
Copy link
Contributor Author

I looked into this a bit more and discovered that there is a clippy lint for this: https://rust-lang.github.io/rust-clippy/master/#/unnecessary_wraps

I ran it and found another instance of the same issue.

@thomaseizinger thomaseizinger changed the title refactor!: make Tunn::new infallible refactor!: make functions infallible where possible Oct 16, 2023
@thomaseizinger
Copy link
Contributor Author

@Noah-Kennedy Anything else I can do to assist in merging this? :)

@Noah-Kennedy
Copy link
Collaborator

No, this looks good

@Noah-Kennedy Noah-Kennedy enabled auto-merge (squash) October 23, 2023 17:09
@Noah-Kennedy Noah-Kennedy merged commit 62c8873 into cloudflare:master Oct 23, 2023
13 checks passed
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.

2 participants