Skip to content

Commit

Permalink
chore: fix mutated
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi committed Nov 25, 2023
1 parent 2b3051c commit dab8096
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/loader.zig
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn Loader(comptime options: Options) type {
defer f.close();

var br = std.io.bufferedReader(f.reader());
var reader = br.reader();
const reader = br.reader();

return try self.loadFromStream(reader);
}
Expand Down Expand Up @@ -246,7 +246,7 @@ test "test load" {
;

var fbs = std.io.fixedBufferStream(input);
var reader = fbs.reader();
const reader = fbs.reader();

var loader = Loader(.{}).init(allocator);
defer loader.deinit();
Expand Down Expand Up @@ -275,7 +275,7 @@ test "test multiline" {
;

var fbs = std.io.fixedBufferStream(input);
var reader = fbs.reader();
const reader = fbs.reader();

var loader = Loader(.{}).init(allocator);
defer loader.deinit();
Expand All @@ -291,7 +291,7 @@ test "test not override" {
;

var fbs = std.io.fixedBufferStream(input);
var reader = fbs.reader();
const reader = fbs.reader();

var loader = Loader(.{ .override = false }).init(allocator);
defer loader.deinit();
Expand All @@ -308,7 +308,7 @@ test "test override" {
;

var fbs = std.io.fixedBufferStream(input);
var reader = fbs.reader();
const reader = fbs.reader();

var loader = Loader(.{ .override = true }).init(allocator);
defer loader.deinit();
Expand All @@ -325,7 +325,7 @@ test "test ownership" {
;

var fbs = std.io.fixedBufferStream(input);
var reader = fbs.reader();
const reader = fbs.reader();

var loader = Loader(.{ .dry_run = true }).init(allocator);
try loader.loadFromStream(reader);
Expand Down

0 comments on commit dab8096

Please sign in to comment.