Skip to content

Commit

Permalink
Remove owned annotation from idx arg in insert
Browse files Browse the repository at this point in the history
Co-authored-by: soraros <[email protected]>
Signed-off-by: bgreni <[email protected]>
  • Loading branch information
bgreni and soraros committed Feb 11, 2025
1 parent a0e910a commit 3aafdb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/src/collections/linked_list.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,7 @@ struct LinkedList[
curr = curr[].next
return new^

fn insert[
I: Indexer
](mut self, owned idx: I, owned elem: ElementType) raises:
fn insert[I: Indexer](mut self, idx: I, owned elem: ElementType) raises:
"""
Insert an element `elem` into the list at index `idx`.
Expand Down

0 comments on commit 3aafdb7

Please sign in to comment.