Adapt to new {s} syntax

This commit is contained in:
Robin Voetter
2021-01-03 16:18:32 +01:00
parent 48b2dee325
commit 55e8551cef
3 changed files with 21 additions and 21 deletions

View File

@@ -54,7 +54,7 @@ pub const ResourceGenStep = struct {
const shader_out_path = self.shader_step.add(source);
var writer = self.resources.writer();
writer.print("pub const {} = @embedFile(\"", .{ name }) catch unreachable;
writer.print("pub const {s} = @embedFile(\"", .{ name }) catch unreachable;
self.renderPath(shader_out_path, writer);
writer.writeAll("\");\n") catch unreachable;
}