Skip to content

Commit

Permalink
Merge pull request #2 from aminya/patch-1
Browse files Browse the repository at this point in the history
fix: make StringImpl.clone trusted
  • Loading branch information
tchaloupka authored Aug 23, 2021
2 parents 7965358 + b006085 commit a1b44f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/bc/string/string.d
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private struct StringImpl(C, RC rc, Zero zero)
}

/// Copy constructor
this(ref return scope StringImpl rhs) pure
this(ref return scope StringImpl rhs) pure @safe
{
if (rhs.pay)
{
Expand Down Expand Up @@ -315,7 +315,7 @@ private struct StringImpl(C, RC rc, Zero zero)
}

///
StringImpl clone() scope
StringImpl clone() scope @trusted
{
return StringImpl(this[]);
}
Expand Down

0 comments on commit a1b44f2

Please sign in to comment.