Skip to content

Commit

Permalink
ci: add format step
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Dec 27, 2024
1 parent 4dcb5bc commit 4a3e81e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
Expand All @@ -33,6 +33,9 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Format
run: cargo fmt --all -- --check

- name: Build
run: cargo build --verbose --features full

Expand Down
2 changes: 1 addition & 1 deletion src/cron.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum Error {
}

/// Run the scheduler in a separate task, return a Future
async fn run_scheduler<'a>(job_scheduler: Arc<Mutex<job_scheduler::JobScheduler<'a>>>) {
async fn run_scheduler(job_scheduler: Arc<Mutex<job_scheduler::JobScheduler<'_>>>) {
let mut interval = tokio::time::interval(tokio::time::Duration::from_secs(1));

loop {
Expand Down

0 comments on commit 4a3e81e

Please sign in to comment.