Update uses of @fieldParentPtr to pass a pointer type
This commit is contained in:
@@ -108,7 +108,7 @@ pub const ConnectionPool = struct {
|
||||
pool.mutex.lock();
|
||||
defer pool.mutex.unlock();
|
||||
|
||||
const node = @fieldParentPtr(Node, "data", connection);
|
||||
const node = @fieldParentPtr(*Node, "data", connection);
|
||||
|
||||
pool.used.remove(node);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user