From e9419174015b4dca2b1f4794d55a7cd6ec77273e Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 23 Oct 2021 14:32:26 +0200 Subject: query: no need to use comptimePrint --- query.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'query.zig') diff --git a/query.zig b/query.zig index e4113bd..8f6f80c 100644 --- a/query.zig +++ b/query.zig @@ -94,7 +94,7 @@ pub const ParsedQuery = struct { // A bind marker with id and type: ?AAA{[]const u8}, we don't need move the pointer. if (current_bind_marker_id_pos > 0) { - parsed_query.bind_markers[parsed_query.nb_bind_markers].identifier = std.fmt.comptimePrint("{s}", .{current_bind_marker_id[0..current_bind_marker_id_pos]}); + parsed_query.bind_markers[parsed_query.nb_bind_markers].identifier = current_bind_marker_id[0..current_bind_marker_id_pos]; } }, else => { @@ -104,7 +104,7 @@ pub const ParsedQuery = struct { } else { state = .Start; if (current_bind_marker_id_pos > 0) { - parsed_query.bind_markers[parsed_query.nb_bind_markers].identifier = std.fmt.comptimePrint("{s}", .{current_bind_marker_id[0..current_bind_marker_id_pos]}); + parsed_query.bind_markers[parsed_query.nb_bind_markers].identifier = current_bind_marker_id[0..current_bind_marker_id_pos]; } } buf[pos] = c; @@ -138,7 +138,7 @@ pub const ParsedQuery = struct { parsed_query.nb_bind_markers += 1; }, .BindMarkerIdentifier => { - parsed_query.bind_markers[parsed_query.nb_bind_markers].identifier = std.fmt.comptimePrint("{s}", .{current_bind_marker_id[0..current_bind_marker_id_pos]}); + parsed_query.bind_markers[parsed_query.nb_bind_markers].identifier = current_bind_marker_id[0..current_bind_marker_id_pos]; parsed_query.nb_bind_markers += 1; }, .Start => {}, -- cgit v1.2.3