diff options
Diffstat (limited to 'src/keys.rs')
-rw-r--r-- | src/keys.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keys.rs b/src/keys.rs index aca310b..72ab86d 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -80,6 +80,6 @@ impl LoginInfo { } pub fn api_for(&self, url: &Url) -> Result<forgejo_api::Forgejo, forgejo_api::ForgejoError> { - forgejo_api::Forgejo::new(&self.key, url.clone()) + forgejo_api::Forgejo::new(forgejo_api::Auth::Token(&self.key), url.clone()) } } |