From 927f3b588e9b5bde9dcf3d6f7f3560e45efe191f Mon Sep 17 00:00:00 2001 From: Justin Duch Date: Tue, 9 Jan 2024 15:01:29 +1100 Subject: [PATCH] use nightly rust in gha --- .github/workflows/rust.yml | 7 +++++++ tests/tests.rs | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f514acc..231266a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,6 +19,13 @@ jobs: steps: - uses: actions/checkout@v2 + + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + - name: Build run: cargo build --verbose - name: Run tests diff --git a/tests/tests.rs b/tests/tests.rs index f040192..d20119a 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -14,6 +14,7 @@ mod tests { #[cfg(not(feature = "blocking"))] use tokio; + #[allow(dead_code)] static USER_AGENT: &str = "macos:roux:v1.4.0 (by /u/beanpup_py)"; #[maybe_async::async_impl] @@ -70,6 +71,7 @@ mod tests { assert!(top.is_ok()); } + #[allow(dead_code)] #[maybe_async::sync_impl] fn test_oauth() { dotenv::dotenv().ok();