Skip to content

Commit

Permalink
Fix typo in CI (#173)
Browse files Browse the repository at this point in the history
The lint group is `clippy::suspicious`, not `clippy::suspiscious`


https://github.com/eyre-rs/eyre/actions/runs/9112483886/job/25051828362#step:5:176

```
warning[E0602]: unknown lint: `clippy::suspiscious`
Warning:   |
  = help: did you mean: `clippy::suspicious`
  = note: requested on the command line with `-D clippy::suspiscious`
  = note: `#[warn(unknown_lints)]` on by default
```
  • Loading branch information
ten3roberts authored May 30, 2024
2 parents a0f3f64 + dbf32d9 commit 907daa2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D clippy::style -D clippy::suspiscious -D clippy::complexity
args: --all-targets --all-features -- -D clippy::style -D clippy::suspicious -D clippy::complexity
miri:
name: Miri
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions eyre/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@ fn capture_handler(error: &(dyn StdError + 'static)) -> Box<dyn EyreHandler> {
}

impl dyn EyreHandler {
///
pub fn is<T: EyreHandler>(&self) -> bool {

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (stable)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features --features track-caller)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features --features auto-install)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --features pyo3)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --all-features)

missing documentation for a method

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features --features auto-install)

missing documentation for an associated function

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features --features track-caller)

missing documentation for an associated function

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features)

missing documentation for an associated function

Check warning on line 627 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

missing documentation for an associated function
// Get `TypeId` of the type this function is instantiated with.
let t = core::any::TypeId::of::<T>();
Expand All @@ -636,7 +635,6 @@ impl dyn EyreHandler {
t == concrete
}

///
pub fn downcast_ref<T: EyreHandler>(&self) -> Option<&T> {

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (stable)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features --features track-caller)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features --features auto-install)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --features pyo3)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --all-features)

missing documentation for a method

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features --features auto-install)

missing documentation for an associated function

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features --features track-caller)

missing documentation for an associated function

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features)

missing documentation for an associated function

Check warning on line 638 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

missing documentation for an associated function
if self.is::<T>() {
unsafe { Some(&*(self as *const dyn EyreHandler as *const T)) }
Expand All @@ -645,7 +643,6 @@ impl dyn EyreHandler {
}
}

///
pub fn downcast_mut<T: EyreHandler>(&mut self) -> Option<&mut T> {

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (stable)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features --features track-caller)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features --features auto-install)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --no-default-features)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --features pyo3)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable, --all-features)

missing documentation for a method

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features --features auto-install)

missing documentation for an associated function

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features --features track-caller)

missing documentation for an associated function

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (--no-default-features)

missing documentation for an associated function

Check warning on line 646 in eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

missing documentation for an associated function
if self.is::<T>() {
unsafe { Some(&mut *(self as *mut dyn EyreHandler as *mut T)) }
Expand Down

0 comments on commit 907daa2

Please sign in to comment.