Closed
Description
Description
The lint message currently spans through the entire method chain expression:
error: use of `unwrap_or` followed by a call to `new`
--> $DIR/or_fun_call.rs:182:9
|
LL | / frames
LL | | .iter()
LL | | .map(|f: &String| f.to_lowercase())
LL | | .reduce(|mut acc, f| {
... |
LL | | })
LL | | .unwrap_or(String::new());
| |_____________________________________^
It would be enough to just point to the unwrap_or
.
Originally posted by @flip1995 in rust-lang/rust#98261 (comment)
Version
No response
Additional Labels
No response