Skip to content

Commit

Permalink
Merge pull request #48 from MoonlightSentinel/fixup-dip1000
Browse files Browse the repository at this point in the history
Remove manual File.opAssign
  • Loading branch information
schveiguy authored Mar 14, 2021
2 parents c39a7c9 + 9c4ab72 commit bce4588
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/std/io/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,6 @@ struct File
close();
}

// workaround Issue 18000
void opAssign(scope File rhs) scope
{
auto tmp = f;
() @trusted { f = rhs.f; }();
rhs.f = tmp;
rhs.close();
}

/// close the file
void close() scope @trusted
{
Expand Down

0 comments on commit bce4588

Please sign in to comment.