summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-06-25 18:04:20 +0200
committerGravatar Vincent Rischmann2021-06-25 18:04:22 +0200
commit0f2f733b048bc6abdbd63937497fdf0051023b70 (patch)
treeed3e95d8ecc6a280cd8ee159581a7b758ecc80eb
parentMerge pull request #34 from Miaourt/master (diff)
downloadzig-sqlite-0f2f733b048bc6abdbd63937497fdf0051023b70.tar.gz
zig-sqlite-0f2f733b048bc6abdbd63937497fdf0051023b70.tar.xz
zig-sqlite-0f2f733b048bc6abdbd63937497fdf0051023b70.zip
fix 'unused function parameter' error
-rw-r--r--sqlite.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 143c279..975c6ef 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -243,6 +243,9 @@ pub const DetailedError = struct {
243 message: []const u8, 243 message: []const u8,
244 244
245 pub fn format(self: @This(), comptime fmt: []const u8, options: std.fmt.FormatOptions, writer: anytype) !void { 245 pub fn format(self: @This(), comptime fmt: []const u8, options: std.fmt.FormatOptions, writer: anytype) !void {
246 _ = fmt;
247 _ = options;
248
246 _ = try writer.print("{{code: {}, message: {s}}}", .{ self.code, self.message }); 249 _ = try writer.print("{{code: {}, message: {s}}}", .{ self.code, self.message });
247 } 250 }
248}; 251};
@@ -918,6 +921,8 @@ pub const StatementOptions = struct {};
918/// Look at each function for more complete documentation. 921/// Look at each function for more complete documentation.
919/// 922///
920pub fn Statement(comptime opts: StatementOptions, comptime query: ParsedQuery) type { 923pub fn Statement(comptime opts: StatementOptions, comptime query: ParsedQuery) type {
924 _ = opts;
925
921 return struct { 926 return struct {
922 const Self = @This(); 927 const Self = @This();
923 928