Skip to content

Commit 8e33911

Browse files
committed
Semver compat
1 parent 6656050 commit 8e33911

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ jobs:
4747
run: cargo clippy --all-targets --manifest-path=c-api/Cargo.toml --target-dir=target
4848
- name: Run clippy on JS API
4949
run: cargo clippy --all-targets --manifest-path=js-api/Cargo.toml --target-dir=target
50-
50+
- name: Check semver
51+
uses: obi1kenobi/cargo-semver-checks-action@v2
52+
with:
53+
package: lol_html
54+
feature-group: default-features
55+
verbose: true
5156
test:
5257
name: Test
5358
runs-on: ubuntu-latest

src/selectors_vm/error.rs

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ pub enum SelectorError {
4545
#[error("Invalid or unescaped class name in selector.")]
4646
InvalidClassName,
4747

48+
/// Unused
49+
#[error("Empty negation in selector.")]
50+
#[deprecated(note = "unused")]
51+
EmptyNegation,
52+
4853
/// Unsupported combinator in the selector.
4954
#[error("Unsupported combinator `{0}` in selector.")]
5055
UnsupportedCombinator(char),

0 commit comments

Comments
 (0)