Skip to content

lint creating a &str (or String) from invalid UTF-8 bytes #629

Closed
@llogiq

Description

@llogiq

This is also undefined behavior (according to the rust book), calling std::str::from_utf8_unchecked(..) on something which is not UTF-8.

Metadata

Metadata

Assignees

Labels

A-lintArea: New lintsL-correctnessLint: Belongs in the correctness lint groupT-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