mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Tests: Use Swift.String extension instead of manual conversion
This fixes a build error with Swift 6.0 on macOS.
This commit is contained in:
parent
329e9ed820
commit
10a2cc3781
Notes:
github-actions[bot]
2024-10-14 20:56:01 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/10a2cc3781b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1799
1 changed files with 1 additions and 2 deletions
|
@ -17,8 +17,7 @@ struct TestLibWebSwiftBindings {
|
|||
#expect(Web.Bindings.NavigationType.Push.rawValue == 0)
|
||||
|
||||
let end = Web.Bindings.idl_enum_to_string(Web.Bindings.ScrollLogicalPosition.End)
|
||||
let end_view = end.__bytes_as_string_viewUnsafe().bytes()
|
||||
let end_string = Swift.String(bytes: end_view, encoding: .utf8)!
|
||||
let end_string = Swift.String(akString: end)!
|
||||
|
||||
#expect(end_string == "end")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue