aboutsummaryrefslogtreecommitdiff
path: root/backend/src/repos/markers_repo.zig
diff options
context:
space:
mode:
authorJoris Guyonvarch2025-08-30 18:13:15 +0200
committerJoris Guyonvarch2025-08-30 18:13:15 +0200
commita97dc06b38f6e9aa3fb3317872bd6e1cfbadc96f (patch)
treee83ef5812aa2bafe46e8feb686a2a93189120c67 /backend/src/repos/markers_repo.zig
parent07960f6b0fef70326101de5ea64a0676fc0547f8 (diff)
Migrate to zig 0.15.1
Diffstat (limited to 'backend/src/repos/markers_repo.zig')
-rw-r--r--backend/src/repos/markers_repo.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/src/repos/markers_repo.zig b/backend/src/repos/markers_repo.zig
index 232b8b6..9fc2b15 100644
--- a/backend/src/repos/markers_repo.zig
+++ b/backend/src/repos/markers_repo.zig
@@ -24,9 +24,9 @@ pub fn get_markers(allocator: std.mem.Allocator, conn: zqlite.Conn, map_id: []co
defer rows.deinit();
- var list = std.ArrayList(Marker).init(allocator);
+ var list: std.ArrayList(Marker) = .{};
while (rows.next()) |row| {
- try list.append(Marker{
+ try list.append(allocator, Marker{
.id = try allocator.dupe(u8, row.text(0)),
.lat = row.float(1),
.lng = row.float(2),