Skip to content

Commit

Permalink
Make a ListDirectoryRequest variable scope
Browse files Browse the repository at this point in the history
To silence a deprecation message while building.
  • Loading branch information
Geod24 committed Feb 20, 2024
1 parent 9073996 commit 2855f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/core/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ void listDirectory(NativePath path, DirectoryListMode mode,
ChannelConfig cc;
cc.priority = ChannelPriority.overhead;

ListDirectoryRequest req;
scope ListDirectoryRequest req;
req.path = path;
req.channel = createChannel!ListDirectoryData(cc);
req.spanMode = mode;
Expand Down

0 comments on commit 2855f40

Please sign in to comment.