What it does
Detects:
std::str::from_utf8(s).unwrap_unchecked()
Suggests:
std::str::from_utf8_unchecked(s)
Advantage
- Skip the validation since the code doesn't need it
- Suggest the more idiomatic method
Drawbacks
No response
Example
Detects:
std::str::from_utf8(s).unwrap_unchecked()
Suggests:
std::str::from_utf8_unchecked(s)