mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-12 12:56:06 +00:00
style(renderer): explicit result type
In case of future breaking changes to `options`
This commit is contained in:
@@ -633,7 +633,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
|||||||
const font_critical: struct {
|
const font_critical: struct {
|
||||||
metrics: font.Metrics,
|
metrics: font.Metrics,
|
||||||
} = font_critical: {
|
} = font_critical: {
|
||||||
const grid = options.font_grid;
|
const grid: *font.SharedGrid = options.font_grid;
|
||||||
grid.lock.lockShared();
|
grid.lock.lockShared();
|
||||||
defer grid.lock.unlockShared();
|
defer grid.lock.unlockShared();
|
||||||
break :font_critical .{
|
break :font_critical .{
|
||||||
|
Reference in New Issue
Block a user