address review: update shaper test discover callsites

CI on Windows (MSVC) surfaced three remaining callers of the old
zero-arg `Discover.init()` in shaper test helpers that the earlier
commit missed. Pass `lib` to match the new signature.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yasuhiro Matsumoto
2026-04-24 01:27:58 +09:00
parent 5aef2541b0
commit fe725b5da1
2 changed files with 4 additions and 4 deletions

View File

@@ -2585,7 +2585,7 @@ fn testShaperWithFont(alloc: Allocator, font_req: TestFont) !TestShaper {
});
} else {
// On CoreText we want to load Apple Emoji, we should have it.
var disco = font.Discover.init();
var disco = font.Discover.init(lib);
defer disco.deinit();
var disco_it = try disco.discover(alloc, .{
.family = "Apple Color Emoji",
@@ -2640,7 +2640,7 @@ fn testShaperWithDiscoveredFont(alloc: Allocator, font_req: [:0]const u8) !TestS
// Discover and add our font to the collection.
{
var disco = font.Discover.init();
var disco = font.Discover.init(lib);
defer disco.deinit();
var disco_it = try disco.discover(alloc, .{
.family = font_req,

View File

@@ -2071,7 +2071,7 @@ fn testShaperWithFont(alloc: Allocator, font_req: TestFont) !TestShaper {
});
} else {
// On CoreText we want to load Apple Emoji, we should have it.
var disco = font.Discover.init();
var disco = font.Discover.init(lib);
defer disco.deinit();
var disco_it = try disco.discover(alloc, .{
.family = "Apple Color Emoji",
@@ -2126,7 +2126,7 @@ fn testShaperWithDiscoveredFont(alloc: Allocator, font_req: [:0]const u8) !TestS
// Discover and add our font to the collection.
{
var disco = font.Discover.init();
var disco = font.Discover.init(lib);
defer disco.deinit();
var disco_it = try disco.discover(alloc, .{
.family = font_req,