From 6f89a0af8d67c0a2cab180caa02b5bd7b7516d47 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 11 Sep 2021 23:55:47 -0700 Subject: [PATCH] move icon_url outside the providers struct --- src/lib.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib.zig b/src/lib.zig index 3ed44a45a72da544adfc7300332f3b9b6ebff687..d3259881f48ee4e251474e8001eac7ebfcf11ef8 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -22,10 +22,9 @@ pub const Client = struct { secret: string, }; -pub const providers = struct { - fn icon_url(comptime name: string) string { - return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg"; - } +fn icon_url(comptime name: string) string { + return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg"; +} pub const providers = struct { pub var amazon = Provider{ -- 2.54.0