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 {
2222 secret: string,
2323};
2424
25pub const providers = struct {
26 fn icon_url(comptime name: string) string {
27 return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg";
28 }
25fn icon_url(comptime name: string) string {
26 return "https://unpkg.com/simple-icons@" ++ "5.13.0" ++ "/icons/" ++ name ++ ".svg";
27}
2928
3029pub const providers = struct {
3130 pub var amazon = Provider{