Skip to content

Commit

Permalink
newer compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaloupka committed Jun 13, 2023
1 parent 432e1ca commit ffd798d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/mqttd/serialization.d
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private:

/// Gets required buffer size to encode into
@safe @nogc
uint itemLength(T)(auto ref in T item) pure nothrow
uint itemLength(T)(auto ref scope const T item) pure nothrow
{
import std.traits : isDynamicArray;

Expand All @@ -344,7 +344,7 @@ uint itemLength(T)(auto ref in T item) pure nothrow
}

@safe
void validate(T)(auto ref in T packet) pure
void validate(T)(auto ref scope const T packet) pure
{
import std.string : format;
import std.exception : enforce;
Expand Down

0 comments on commit ffd798d

Please sign in to comment.