Skip to content

Commit 82a7b82

Browse files
authored
Merge pull request #2 from bettermarks/add-lint-workflow
ci: add lint workflow
2 parents e39ebed + 0961f5c commit 82a7b82

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
codestyle:
13+
name: Codestyle
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: clippy, rustfmt
21+
- uses: Swatinem/rust-cache@v2
22+
- run: cargo check
23+
env:
24+
RUSTFLAGS: '-D unused'
25+
- run: cargo clippy -- -D clippy::all
26+
- run: cargo fmt --check

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use anyhow::{Ok, Result};
22
use base64::prelude::*;
3-
use clap::{ArgAction, Parser, Subcommand};
3+
use clap::{Parser, Subcommand};
44
use humantime::Duration;
55
use pasetors::{
66
claims::Claims,
@@ -9,7 +9,6 @@ use pasetors::{
99
version4::V4,
1010
};
1111
use std::io::{self, Read};
12-
use std::str::FromStr;
1312
use thiserror::Error;
1413

1514
#[derive(Error, Debug)]

0 commit comments

Comments
 (0)