diff options
Diffstat (limited to 'source/tanya/net/ip.d')
| -rw-r--r-- | source/tanya/net/ip.d | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/tanya/net/ip.d b/source/tanya/net/ip.d index 92acd3d..eff93ba 100644 --- a/source/tanya/net/ip.d +++ b/source/tanya/net/ip.d @@ -57,10 +57,9 @@ struct Address4 * Params: * address = The address as an unsigned integer in host byte order. */ - this(uint address) @nogc nothrow pure @safe + this(uint address) @nogc nothrow pure @trusted { - copy(NetworkOrder!4(address), - (() @trusted => (cast(ubyte*) &this.address)[0 .. 4])()); + copy(NetworkOrder!4(address), (cast(ubyte*) &this.address)[0 .. 4]); } /// |
