### What it does Well, exactly as the title described, and could apply to `while`s as well. The idea is kinda like a combination of [`unnecessary_unwrap`] and [`get_first`]. Such lint might already exist, idk. ### Advantage Readability? ### Drawbacks maybe? maybe not? ### Example ```rust if !seq.is_empty() { let x = seq[0]; // ... } ``` Could be written as: ```rust if let Some(x) = seq.first() { // ... } ``` <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"Jacherr"}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->