diff options
| author | 2021-06-25 18:04:20 +0200 | |
|---|---|---|
| committer | 2021-06-25 18:04:22 +0200 | |
| commit | 0f2f733b048bc6abdbd63937497fdf0051023b70 (patch) | |
| tree | ed3e95d8ecc6a280cd8ee159581a7b758ecc80eb | |
| parent | Merge pull request #34 from Miaourt/master (diff) | |
| download | zig-sqlite-0f2f733b048bc6abdbd63937497fdf0051023b70.tar.gz zig-sqlite-0f2f733b048bc6abdbd63937497fdf0051023b70.tar.xz zig-sqlite-0f2f733b048bc6abdbd63937497fdf0051023b70.zip | |
fix 'unused function parameter' error
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -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 | /// |
| 920 | pub fn Statement(comptime opts: StatementOptions, comptime query: ParsedQuery) type { | 923 | pub 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 | ||