Skip to content

Commit 99e5e98

Browse files
committed
fix formatting and add a travis check for it
1 parent e577880 commit 99e5e98

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ matrix:
2929

3030
before_script:
3131
- export EXTRA_FEATURES=
32+
- if [[ "${TRAVIS_RUST_VERSION}" = "stable" ]]; then rustup component add rustfmt && cargo fmt -- --check; fi
3233
- if [[ "${TRAVIS_RUST_VERSION}" = "nightly" ]]; then export EXTRA_FEATURES="$EXTRA_FEATURES unstable"; fi
3334
- if [[ "${DIST_SCCACHE}" = "1" ]]; then export EXTRA_FEATURES="$EXTRA_FEATURES dist-client dist-server"; fi
3435

src/dist/client_auth.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,10 @@ pub fn get_token_oauth2_code_grant_pkce(
576576
);
577577

578578
info!("Listening on http://localhost:{} with 1 thread.", port);
579-
println!("sccache: Please visit http://localhost:{} in your browser", port);
579+
println!(
580+
"sccache: Please visit http://localhost:{} in your browser",
581+
port
582+
);
580583
let (shutdown_tx, shutdown_rx) = oneshot::channel();
581584
let (code_tx, code_rx) = mpsc::sync_channel(1);
582585
let state = code_grant_pkce::State {
@@ -614,7 +617,10 @@ pub fn get_token_oauth2_implicit(client_id: &str, mut auth_url: Url) -> Result<S
614617
implicit::finish_url(client_id, &mut auth_url, &redirect_uri, &auth_state_value);
615618

616619
info!("Listening on http://localhost:{} with 1 thread.", port);
617-
println!("sccache: Please visit http://localhost:{} in your browser", port);
620+
println!(
621+
"sccache: Please visit http://localhost:{} in your browser",
622+
port
623+
);
618624
let (shutdown_tx, shutdown_rx) = oneshot::channel();
619625
let (token_tx, token_rx) = mpsc::sync_channel(1);
620626
let state = implicit::State {

0 commit comments

Comments
 (0)