mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
clippy
This commit is contained in:
parent
7fdaa5b91f
commit
b0e0c14dd8
2 changed files with 2 additions and 5 deletions
|
@ -154,10 +154,7 @@ pub fn replace_code_section(module: &mut Module, code_section_bytes: std::vec::V
|
|||
|
||||
let code_section_index = sections
|
||||
.iter()
|
||||
.position(|s| match s {
|
||||
Section::Code(_) => true,
|
||||
_ => false,
|
||||
})
|
||||
.position(|s| matches!(s, Section::Code(_)))
|
||||
.unwrap();
|
||||
|
||||
sections[code_section_index] = Section::Unparsed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue