Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in CI #173

Merged
merged 2 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -330,7 +330,7 @@
//! [`color-backtrace`]: https://github.com/athre0z/color-backtrace
#![doc(html_root_url = "https://docs.rs/eyre/0.6.11")]
#![cfg_attr(
nightly,

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

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

unexpected `cfg` condition name: `nightly`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

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

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `nightly`

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

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `nightly`
feature(rustdoc_missing_doc_code_examples),
warn(rustdoc::missing_doc_code_examples)
)]
Expand All @@ -355,8 +355,8 @@
unused_parens,
while_true
)]
#![cfg_attr(backtrace, feature(backtrace))]

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

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

unexpected `cfg` condition name: `backtrace`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `backtrace`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `backtrace`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `backtrace`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `backtrace`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `backtrace`

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

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `backtrace`

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

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `backtrace`
#![cfg_attr(doc_cfg, feature(doc_cfg))]

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

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

unexpected `cfg` condition name: `doc_cfg`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `doc_cfg`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `doc_cfg`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `doc_cfg`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `doc_cfg`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `doc_cfg`

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

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `doc_cfg`

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

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `doc_cfg`
#![allow(
clippy::needless_doctest_main,
clippy::new_ret_no_self,
Expand Down Expand Up @@ -599,8 +599,8 @@
HOOK.set(hook).map_err(|_| InstallError)
}

#[cfg_attr(track_caller, track_caller)]

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

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `track_caller`
#[cfg_attr(not(track_caller), allow(unused_mut))]

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

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`

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

View workflow job for this annotation

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

unexpected `cfg` condition name: `track_caller`
fn capture_handler(error: &(dyn StdError + 'static)) -> Box<dyn EyreHandler> {
#[cfg(not(feature = "auto-install"))]
let hook = HOOK
Expand All @@ -624,8 +624,7 @@
}

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 (beta, --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, --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 (beta, --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)

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 (beta, --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 (beta)

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 (beta, --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 (beta, --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, --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 (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, --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 (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 (--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 (--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

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 (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 (windows-latest)

missing documentation for a method
// Get `TypeId` of the type this function is instantiated with.
let t = core::any::TypeId::of::<T>();

Expand All @@ -636,8 +635,7 @@
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 (beta, --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, --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 (beta, --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)

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 (beta, --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 (beta)

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 (beta, --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 (beta, --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, --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 (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, --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 (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 (--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 (--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

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 (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 (windows-latest)

missing documentation for a method
if self.is::<T>() {
unsafe { Some(&*(self as *const dyn EyreHandler as *const T)) }
} else {
Expand All @@ -645,8 +643,7 @@
}
}

///
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 (beta, --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, --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 (beta, --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)

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 (beta, --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 (beta)

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 (beta, --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 (beta, --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, --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 (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, --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 (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 (--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 (--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

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 (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 (windows-latest)

missing documentation for a method
if self.is::<T>() {
unsafe { Some(&mut *(self as *mut dyn EyreHandler as *mut T)) }
} else {
Expand Down
Loading