Skip to content

Error: From<Infallible>#4235

Open
hrls wants to merge 1 commit intosolana-foundation:masterfrom
hrls:chore/error-from-infallible
Open

Error: From<Infallible>#4235
hrls wants to merge 1 commit intosolana-foundation:masterfrom
hrls:chore/error-from-infallible

Conversation

@hrls
Copy link
Contributor

@hrls hrls commented Feb 12, 2026

No description provided.

@vercel
Copy link

vercel bot commented Feb 12, 2026

@hrls is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@jamie-osec
Copy link
Collaborator

What's the usecase for this?

@hrls
Copy link
Contributor Author

hrls commented Feb 13, 2026

What's the usecase for this?

Any Error type should implement From<Infallible>.
It is std-way to refactor instances of From as TryFrom and allow to use them in any context.

@jamie-osec
Copy link
Collaborator

sgtm, just wondered if there was a specific use case this was unblocking

@hrls hrls force-pushed the chore/error-from-infallible branch from ad0c00c to cd72285 Compare February 27, 2026 10:11
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