refactor: lots more writergate fixes - first successful build
This commit is contained in:
parent
5094aa8c85
commit
bf0d4402ea
48 changed files with 404 additions and 413 deletions
|
|
@ -160,14 +160,14 @@ fn add_menu_command(self: *Self, command_name: []const u8, description: []const
|
|||
self.menu_w = self.menu_label_max + 2 + padding.left + padding.right;
|
||||
}
|
||||
|
||||
var value = std.ArrayList(u8).init(self.allocator);
|
||||
var value: std.Io.Writer.Allocating = .init(self.allocator);
|
||||
defer value.deinit();
|
||||
const writer = value.writer();
|
||||
const writer = &value.writer;
|
||||
try cbor.writeValue(writer, description);
|
||||
try cbor.writeValue(writer, hint);
|
||||
try cbor.writeValue(writer, command_name);
|
||||
|
||||
try menu.add_item_with_handler(value.items, menu_action);
|
||||
try menu.add_item_with_handler(value.written(), menu_action);
|
||||
}
|
||||
|
||||
pub fn update(self: *Self) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue