╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────╮ │1062 email: []const u8, // an email no user matches │ │1063 user_name: []const u8, │ │1064 │ │1065 - // the commit author line's email, resolved like initFromDb │ │1065 + // the commit author line's email, resolved like initFromEmail│ │1066 pub fn init( │ │1067 haxy_moment: ?evt.AdminDB.HashMap(.read_only), │ │1068 arena: *std.heap.ArenaAllocator, │ ╰────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │1069 author_line: []const u8, │ │1070 ) !Author { │ │1071 - return initFromDb(haxy_moment, arena, evt.authorEmail(author_line)); │ │1071 + return initFromEmail(haxy_moment, arena, evt.authorEmail(author_line));│ │1072 } │ │1073 │ │1074 // from a record's stored author email: it resolves to the user currently │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │1075 // holding it, else stays the email. the result is allocated in `arena`,│ │1076 // so the email may borrow transient memory. │ │1077 - pub fn initFromDb( │ │1077 + pub fn initFromEmail( │ │1078 haxy_moment: ?evt.AdminDB.HashMap(.read_only), │ │1079 arena: *std.heap.ArenaAllocator, │ │1080 author_email: ?[]const u8, │ ╰──────────────────────────────────────────────────────────────────────────────────╯