mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
clippy fixes
This commit is contained in:
parent
0ba5b3cfc6
commit
f3f6f58d09
5 changed files with 6 additions and 11 deletions
|
@ -114,7 +114,7 @@ pub fn new_assign_mn(
|
|||
|
||||
pub fn new_module_name_mn_id(mn_ids: Vec<MarkNodeId>, mark_node_pool: &mut SlowPool) -> MarkNodeId {
|
||||
if mn_ids.len() == 1 {
|
||||
*mn_ids.get(0).unwrap() // safe because we checked the length before
|
||||
*mn_ids.first().unwrap() // safe because we checked the length before
|
||||
} else {
|
||||
let nested_node = make_nested_mn(mn_ids, 0);
|
||||
mark_node_pool.add(nested_node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue