diff options
| author | Xe Iaso <me@christine.website> | 2022-04-05 20:35:07 -0400 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-04-05 20:35:07 -0400 |
| commit | fa2ada9747933ec78393947772343cdbb76ea59f (patch) | |
| tree | 7df3e71ebbc46f68ef7a704ef76e609f13ab3f03 /lib | |
| parent | 3a5c7adc42797376c606f4130edca988efc95e0a (diff) | |
| download | xesite-fa2ada9747933ec78393947772343cdbb76ea59f.tar.xz xesite-fa2ada9747933ec78393947772343cdbb76ea59f.zip | |
don't read patreon creds from envvars
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/patreon/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/patreon/src/lib.rs b/lib/patreon/src/lib.rs index 47850e2..a102574 100644 --- a/lib/patreon/src/lib.rs +++ b/lib/patreon/src/lib.rs @@ -124,8 +124,8 @@ pub struct Links { } impl Client { - pub fn new(creds: Credentials) -> Result<Self> { - let mut creds = creds.clone(); + pub fn new() -> Result<Self> { + let mut creds = Credentials::default(); let p = Path::new(".patreon.json"); if p.exists() { |
