Skip to content

Lint TryFrom with infalliable error type #2144

Open
@clarfonthey

Description

@clarfonthey

Implementations of TryFrom should always have a falliable error type; instead, infalliable conversions should be implemented via From with the blanket conversion.

Metadata

Metadata

Assignees

Labels

A-lintArea: New lintsL-unnecessaryLint: Warn about unnecessary codeT-middleType: Probably requires verifiying typesgood first issueThese issues are a good way to get started with Clippy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions