Skip to content

Commit

Permalink
make shared_oauth2_flow public
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtbuilds committed Dec 27, 2023
1 parent 12232fe commit 936c743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libninja/src/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 936c743

Please sign in to comment.