Skip to content

Commit

Permalink
Merge pull request #2299 from tom-tan/trusted-file-rename
Browse files Browse the repository at this point in the history
Mark std.file.rename as @trusted
  • Loading branch information
dnadlinger committed Jul 10, 2014
2 parents 1586ef6 + 0951655 commit dc3d348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/file.d
Expand Up @@ -396,7 +396,7 @@ version(Posix) private void writeImpl(in char[] name,
* If the target file exists, it is overwritten.
* Throws: $(D FileException) on error.
*/
void rename(in char[] from, in char[] to)
void rename(in char[] from, in char[] to) @trusted
{
version(Windows)
{
Expand Down

0 comments on commit dc3d348

Please sign in to comment.