Skip to content

Commit

Permalink
Freshen up (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle authored Dec 2, 2024
1 parent a20a5b3 commit 80ec0a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "rustfmt,clippy"
Expand All @@ -32,14 +32,14 @@ jobs:
name: cargo-deny check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2

msrv-check:
name: Minimum Stable Rust Version Check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- run: cargo fetch
- name: cargo check
Expand All @@ -52,7 +52,7 @@ jobs:
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fetch
- name: cargo build
Expand Down
4 changes: 0 additions & 4 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[advisories]
unmaintained = "deny"
vulnerability = "deny"
unsound = "deny"
yanked = "deny"
ignore = [
]
Expand All @@ -10,7 +7,6 @@ ignore = [
multiple-versions = "deny"

[licenses]
unlicensed = "deny"
# We want really high confidence when inferring licenses from text
confidence-threshold = 0.92
allow = [
Expand Down
4 changes: 2 additions & 2 deletions src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ pub enum Token<'a> {
Or,
}

impl<'a> std::fmt::Display for Token<'a> {
impl std::fmt::Display for Token<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
std::fmt::Debug::fmt(self, f)
}
}

impl<'a> Token<'a> {
impl Token<'_> {
fn len(&self) -> usize {
match self {
Token::Spdx(id) => id.name.len(),
Expand Down

0 comments on commit 80ec0a8

Please sign in to comment.