feat: remove toStr methods

This commit is contained in:
utox39
2025-05-30 18:01:00 +02:00
parent 5019f177c1
commit ff810a1656
7 changed files with 9 additions and 97 deletions

View File

@@ -9,10 +9,6 @@ const c_socket = @cImport(@cInclude("sys/socket.h"));
pub const NetInfo = struct {
interface_name: []u8,
ipv4_addr: []u8,
pub fn toStr(self: NetInfo, buf: []u8) ![]u8 {
return std.fmt.bufPrint(buf, "({s}): {s}", .{ self.interface_name, self.ipv4_addr });
}
};
pub fn getNetInfo(allocator: std.mem.Allocator) !std.ArrayList(NetInfo) {