Skip to content

Commit

Permalink
CI: update the fuzzer corpus in each run
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Nov 22, 2024
1 parent b95d17f commit 12653bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ jobs:
id: cache-corpus
with:
path: fuzz/corpus/${{ matrix.target }}
key: fuzz-${{ matrix.target }}
key: fuzz-${{ matrix.target }}-${{ github.run_id }}
restore-keys: |
fuzz-${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- run: cargo install cargo-fuzz || true
- run: python3 build_corpus.py
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ alloc = ["serde?/alloc"]
serialize = ["serde"]

[dependencies]
serde = { version = "1.0.166", optional = true, default_features = false }
serde = { version = "1.0.166", optional = true, default-features = false }

[dev-dependencies]
codspeed-criterion-compat = "2.3.3"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ impl<'a> From<LanguageTag<&'a str>> for LanguageTag<Cow<'a, str>> {
}
}

impl<'a> From<LanguageTag<String>> for LanguageTag<Cow<'a, str>> {
impl From<LanguageTag<String>> for LanguageTag<Cow<'_, str>> {
#[inline]
fn from(tag: LanguageTag<String>) -> Self {
Self {
Expand Down

0 comments on commit 12653bc

Please sign in to comment.