summaryrefslogtreecommitdiffstats
path: root/tests/user.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2024-08-11 17:29:43 +0200
committerCyborus <cyborus@noreply.codeberg.org>2024-08-11 17:29:43 +0200
commita5fe0dfea83350713b797456c6373cc34aed9fa2 (patch)
treeb05eb2a05e43c4317150134a2727bc39dffb870a /tests/user.rs
parentMerge pull request 'bump version to 0.4.1' (#73) from bump-0.4.1 into main (diff)
parentClippy Fixes (diff)
downloadforgejo-api-a5fe0dfea83350713b797456c6373cc34aed9fa2.tar.xz
forgejo-api-a5fe0dfea83350713b797456c6373cc34aed9fa2.zip
Merge pull request 'Clippy Fixes' (#74) from Pi-Cla/forgejo-api:clippy into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/74 Reviewed-by: Cyborus <cyborus@noreply.codeberg.org>
Diffstat (limited to 'tests/user.rs')
-rw-r--r--tests/user.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/user.rs b/tests/user.rs
index 3b6e0e3..51e788a 100644
--- a/tests/user.rs
+++ b/tests/user.rs
@@ -164,7 +164,7 @@ async fn oauth2_login() {
let code = code.unwrap();
// Redeem the code and check it works
- let url = url::Url::parse(&base_url).unwrap();
+ let url = url::Url::parse(base_url).unwrap();
let api = forgejo_api::Forgejo::new(forgejo_api::Auth::None, url.clone()).unwrap();
let request = forgejo_api::structs::OAuthTokenRequest::Confidential {