1 error: use of `unwrap_or` followed by a function call
2 --> $DIR/unwrap_or.rs:4:47
4 LL | let s = Some(String::from("test string")).unwrap_or("Fail".to_string()).len();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| "Fail".to_string())`
7 = note: `-D clippy::or-fun-call` implied by `-D warnings`
9 error: use of `unwrap_or` followed by a function call
10 --> $DIR/unwrap_or.rs:8:47
12 LL | let s = Some(String::from("test string")).unwrap_or("Fail".to_string()).len();
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| "Fail".to_string())`
15 error: aborting due to 2 previous errors