authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-09-11 23:55:47 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-09-11 23:55:47 -07:00
log6f89a0af8d67c0a2cab180caa02b5bd7b7516d47
tree3a7b290456b975da271c19ebe8d44008272fd52a
parent24ba6e57129328316af716075ecc3f0dbaaa1865

move icon_url outside the providers struct


1 files changed, 3 insertions(+), 4 deletions(-)

src/lib.zig+3-4
...@@ -22,10 +22,9 @@ pub const Client = struct {...@@ -22,10 +22,9 @@ pub const Client = struct {
22 secret: string,22 secret: string,
23};23};
2424
25pub const providers = struct {25fn icon_url(comptime name: string) string {
26 fn icon_url(comptime name: string) string {26 return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg";
27 return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg";27}
28 }
2928
30pub const providers = struct {29pub const providers = struct {
31 pub var amazon = Provider{30 pub var amazon = Provider{