Skip to content

Commit

Permalink
Simplify intrusive linked list test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Orru committed Mar 10, 2018
1 parent 6288ad8 commit 152b408
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions std/linked_list.zig
Expand Up @@ -274,11 +274,10 @@ test "basic linked list test" {
assert (list.len == 2);
}

const link = "link";
const ElementList = IntrusiveLinkedList(Element, link);
const ElementList = IntrusiveLinkedList(Element, "link");
const Element = struct {
value: u32,
link: IntrusiveLinkedList(Element, link).Node,
link: IntrusiveLinkedList(Element, "link").Node,
};

test "basic intrusive linked list test" {
Expand Down

0 comments on commit 152b408

Please sign in to comment.