From 936c74386fb9db5f9a5df1dd0e9940b6f9c21fbc Mon Sep 17 00:00:00 2001 From: Kurt Wolf Date: Wed, 27 Dec 2023 15:04:58 -0500 Subject: [PATCH] make shared_oauth2_flow public --- libninja/src/rust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libninja/src/rust.rs b/libninja/src/rust.rs index c868704..27f7ffd 100644 --- a/libninja/src/rust.rs +++ b/libninja/src/rust.rs @@ -279,7 +279,7 @@ fn shared_oauth2_flow(auth: &Oauth2Auth, spec: &HirSpec, opts: &PackageConfig) - let _ = SHARED_OAUTH2FLOW.set(init); } - fn shared_oauth2_flow() -> &'static httpclient_oauth2::OAuth2Flow { + pub fn shared_oauth2_flow() -> &'static httpclient_oauth2::OAuth2Flow { SHARED_OAUTH2FLOW.get_or_init(|| httpclient_oauth2::OAuth2Flow { client_id: std::env::var(#client_id).expect(#client_id_expect), client_secret: std::env::var(#client_secret).expect(#client_secret_expect),