Lint suggestion: Warn if non-trivial work is done inside .expect #2338
Labels
good-first-issue
These issues are a good way to get started with Clippy
L-perf
Lint: Belongs in the perf lint group
T-middle
Type: Probably requires verifiying types
Suggestion: It would be useful to issue warnings for cases like
.expect(&format!(…))
that, although correct, are often slower than one would expect because theformat!
occurs regardless of whether the error message is needed.The text was updated successfully, but these errors were encountered: