Skip to content

Commit

Permalink
use nightly rust in gha
Browse files Browse the repository at this point in the history
  • Loading branch information
beanpuppy committed Jan 9, 2024
1 parent b567746 commit 5e6fcda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -70,6 +71,7 @@ mod tests {
assert!(top.is_ok());
}

#[allow(dead_code)]
#[maybe_async::sync_impl]
fn test_oauth() {
dotenv::dotenv().ok();
Expand Down

0 comments on commit 5e6fcda

Please sign in to comment.