diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb861dcd..04abff93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: uses: ./.github/actions/setup with: kind: check - toolchain: 1.70.0 + toolchain: 1.74.0 # needed for `clap` in pest_debugger - name: cargo check run: cargo check --all --features pretty-print,const_prec_climber,memchr,grammar-extras --all-targets @@ -40,7 +40,7 @@ jobs: with: kind: check components: clippy, rustfmt - toolchain: 1.70.0 + toolchain: 1.74.0 # needed for `clap` in pest_debugger - name: cargo fmt run: cargo fmt --all -- --check - name: cargo clippy @@ -62,7 +62,7 @@ jobs: id: setup with: kind: check - toolchain: 1.70.0 + toolchain: 1.74.0 # needed for `clap` in pest_debugger - name: cargo doc run: cargo doc --all --features pretty-print,const_prec_climber,memchr,grammar-extras @@ -123,7 +123,7 @@ jobs: id: setup with: kind: check - toolchain: 1.70.0 + toolchain: 1.74.0 # needed for `clap` in pest_debugger - name: Check feature powerset run: cargo hack check --feature-powerset --optional-deps --exclude-all-features --skip not-bootstrap-in-src,cargo --keep-going --lib --tests --ignore-private diff --git a/pest/src/position.rs b/pest/src/position.rs index 465ff976..3b1b6e7f 100644 --- a/pest/src/position.rs +++ b/pest/src/position.rs @@ -463,6 +463,7 @@ impl<'i> PartialEq for Position<'i> { impl<'i> Eq for Position<'i> {} +#[allow(clippy::non_canonical_partial_ord_impl)] impl<'i> PartialOrd for Position<'i> { fn partial_cmp(&self, other: &Position<'i>) -> Option { if ptr::eq(self.input, other.input) {