Skip to content

Commit 4b0e886

Browse files
committed
[cxx-interop] Fix warning about missing unsafe
1 parent 521c2ce commit 4b0e886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Cxx/std/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ extension String {
534534
unsafe String(decoding: $0, as: UTF32.self)
535535
}
536536
#endif
537-
withExtendedLifetime(cxxWStringView) {}
537+
unsafe withExtendedLifetime(cxxWStringView) {}
538538
}
539539
}
540540

0 commit comments

Comments
 (0)