mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
clippy fixes
This commit is contained in:
parent
3041da46f3
commit
c85a25e320
6 changed files with 14 additions and 57 deletions
|
@ -594,7 +594,7 @@ pub fn desugar_expr<'a>(
|
|||
|
||||
// line_info is an option so that we can lazily calculate it.
|
||||
// That way it there are no `dbg` statements, we never pay the cast of scanning the source an extra time.
|
||||
if matches!(line_info, None) {
|
||||
if line_info.is_none() {
|
||||
*line_info = Some(LineInfo::new(src));
|
||||
}
|
||||
let line_col = line_info.as_ref().unwrap().convert_pos(region.start());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue