Skip to content

Commit cba26e4

Browse files
Remove unecessary variable
1 parent b5afd4d commit cba26e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

std/container/dlist.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ struct DList(T)
210210
import std.algorithm.mutation : move;
211211

212212
this._base = _base;
213-
temp = cast(T)_payload;
214-
this._payload = move(temp);
213+
this._payload = move(cast(T)_payload);
215214
}
216215

217216
inout(BaseNode)* asBaseNode() inout @trusted

0 commit comments

Comments
 (0)