Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on nightly compiler #40

Merged
merged 1 commit into from
Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [nightly]
rust: [stable]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand All @@ -23,7 +23,7 @@ jobs:
run: |
cargo fmt --all -- --check
./scripts/check_json_format.sh
if: matrix.rust == 'nightly'
if: matrix.rust == 'stable'

- name: tests
run: cargo test --all
9 changes: 4 additions & 5 deletions sdk/identity/src/device_code_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ impl<'a> DeviceCodePhaseOneResponse<'a> {
Finish,
}

unfold(
NextState::Continue,
async move |state: NextState| match state {
unfold(NextState::Continue, move |state: NextState| async move {
match state {
NextState::Continue => {
let uri = format!(
"https://login.microsoftonline.com/{}/oauth2/v2.0/token",
Expand Down Expand Up @@ -167,7 +166,7 @@ impl<'a> DeviceCodePhaseOneResponse<'a> {
}
}
NextState::Finish => None,
},
)
}
})
}
}
1 change: 0 additions & 1 deletion sdk/identity/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(async_closure)]
#[macro_use]
extern crate serde_derive;
extern crate log;
Expand Down