From dadd775a614621f458949a4dafde920c3e3e9d17 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 16 Apr 2022 16:03:23 +0200 Subject: constrain the error set of createScalarFunction --- sqlite.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite.zig b/sqlite.zig index e27abb5..b310939 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -617,7 +617,7 @@ pub const Db = struct { /// /// The return type of the function is converted to a SQLite value according to the same rules but reversed. /// - pub fn createScalarFunction(self: *Self, func_name: [:0]const u8, comptime func: anytype, comptime create_flags: CreateFunctionFlag) !void { + pub fn createScalarFunction(self: *Self, func_name: [:0]const u8, comptime func: anytype, comptime create_flags: CreateFunctionFlag) Error!void { const Type = @TypeOf(func); const fn_info = switch (@typeInfo(Type)) { -- cgit v1.2.3