Skip to content
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 @@ -116,7 +116,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
args: --all --check

clippy:
name: Clippy
Expand Down
72 changes: 0 additions & 72 deletions color-eyre/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,6 @@ on:
name: Continuous integration

jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check

test-features:
name: Test Features
runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,58 +61,3 @@ jobs:
- name: run wasm tests
run: wasm-pack test --node
if: ${{ matrix.target == 'wasm32-unknown-unknown' }}

test-os:
name: Test Operating Systems
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
5 changes: 0 additions & 5 deletions color-eyre/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
}

/// Builder for customizing the behavior of the global panic and error report hooks
pub struct HookBuilder {

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Check (stable)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Miri

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Miri

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (beta)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 387 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (msrv)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation
filters: Vec<Box<FilterCallback>>,
capture_span_trace_by_default: bool,
display_env_section: bool,
Expand Down Expand Up @@ -546,7 +546,6 @@
/// .unwrap();
/// ```
#[cfg(feature = "issue-url")]
#[cfg_attr(docsrs, doc(cfg(feature = "issue-url")))]
pub fn issue_url<S: ToString>(mut self, url: S) -> Self {
self.issue_url = Some(url.to_string());
self
Expand All @@ -566,7 +565,6 @@
/// .unwrap();
/// ```
#[cfg(feature = "issue-url")]
#[cfg_attr(docsrs, doc(cfg(feature = "issue-url")))]
pub fn add_issue_metadata<K, V>(mut self, key: K, value: V) -> Self
where
K: Display,
Expand Down Expand Up @@ -602,7 +600,6 @@
/// .unwrap();
///
#[cfg(feature = "issue-url")]
#[cfg_attr(docsrs, doc(cfg(feature = "issue-url")))]
pub fn issue_filter<F>(mut self, predicate: F) -> Self
where
F: Fn(crate::ErrorKind<'_>) -> bool + Send + Sync + 'static,
Expand All @@ -629,7 +626,6 @@
///
/// This will not disable the location section in a panic message.
#[cfg(feature = "track-caller")]
#[cfg_attr(docsrs, doc(cfg(feature = "track-caller")))]
pub fn display_location_section(mut self, cond: bool) -> Self {
self.display_location_section = cond;
self
Expand Down Expand Up @@ -821,7 +817,7 @@
}

/// A type representing an error report for a panic.
pub struct PanicReport<'a> {

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Check (stable)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Miri

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (beta)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 820 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (msrv)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation
hook: &'a PanicHook,
panic_info: &'a std::panic::PanicInfo<'a>,
backtrace: Option<backtrace::Backtrace>,
Expand Down Expand Up @@ -905,7 +901,7 @@
}

/// A panic reporting hook
pub struct PanicHook {

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Check (stable)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Miri

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (beta)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 904 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (msrv)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation
filters: Arc<[Box<FilterCallback>]>,
section: Option<Box<dyn Display + Send + Sync + 'static>>,
panic_message: Box<dyn PanicMessage>,
Expand Down Expand Up @@ -987,7 +983,7 @@
}

/// An eyre reporting hook used to construct `EyreHandler`s
pub struct EyreHook {

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Check (stable)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Miri

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (beta)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 986 in color-eyre/src/config.rs

View workflow job for this annotation

GitHub Actions / Test Suite (msrv)

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation
filters: Arc<[Box<FilterCallback>]>,
#[cfg(feature = "capture-spantrace")]
capture_span_trace_by_default: bool,
Expand Down Expand Up @@ -1183,5 +1179,4 @@

/// Callback for filtering issue url generation in error reports
#[cfg(feature = "issue-url")]
#[cfg_attr(docsrs, doc(cfg(feature = "issue-url")))]
pub type IssueFilterCallback = dyn Fn(crate::ErrorKind<'_>) -> bool + Send + Sync + 'static;
1 change: 0 additions & 1 deletion color-eyre/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ impl Handler {

/// Return a reference to the captured `SpanTrace` type
#[cfg(feature = "capture-spantrace")]
#[cfg_attr(docsrs, doc(cfg(feature = "capture-spantrace")))]
pub fn span_trace(&self) -> Option<&SpanTrace> {
self.span_trace.as_ref()
}
Expand Down
24 changes: 14 additions & 10 deletions color-eyre/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,20 +325,25 @@
//! [`eyre::EyreHandler`]: https://docs.rs/eyre/*/eyre/trait.EyreHandler.html
//! [`backtrace::Backtrace`]: https://docs.rs/backtrace/*/backtrace/struct.Backtrace.html
//! [`tracing_error::SpanTrace`]: https://docs.rs/tracing-error/*/tracing_error/struct.SpanTrace.html
//! [`color-spantrace`]: https://github.com/yaahc/color-spantrace
//! [`color-spantrace`]: https://docs.rs/color-spantrace
//! [`Section`]: https://docs.rs/color-eyre/*/color_eyre/trait.Section.html
//! [`eyre::Report`]: https://docs.rs/eyre/*/eyre/struct.Report.html
//! [`eyre::Result`]: https://docs.rs/eyre/*/eyre/type.Result.html
//! [`Handler`]: https://docs.rs/color-eyre/*/color_eyre/struct.Handler.html
//! [`examples/usage.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/usage.rs
//! [`examples/custom_filter.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/custom_filter.rs
//! [`examples/custom_section.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/custom_section.rs
//! [`examples/multiple_errors.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/multiple_errors.rs
#![doc(html_root_url = "https://docs.rs/color-eyre/0.6.2")]
#![cfg_attr(docsrs, feature(doc_cfg))]
//! [`examples/usage.rs`]: https://github.com/eyre-rs/eyre/blob/master/color-eyre/examples/usage.rs
//! [`examples/custom_filter.rs`]: https://github.com/eyre-rs/eyre/blob/master/color-eyre/examples/custom_filter.rs
//! [`examples/custom_section.rs`]: https://github.com/eyre-rs/eyre/blob/master/color-eyre/examples/custom_section.rs
//! [`examples/multiple_errors.rs`]: https://github.com/eyre-rs/eyre/blob/master/color-eyre/examples/multiple_errors.rs
#![cfg_attr(
nightly,

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (stable)

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-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 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-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 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-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 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-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 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Miri

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (beta)

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-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 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

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

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

unexpected `cfg` condition name: `nightly`

Check warning on line 338 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

unexpected `cfg` condition name: `nightly`
feature(rustdoc_missing_doc_code_examples),
warn(rustdoc::missing_doc_code_examples)
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(
missing_debug_implementations,
missing_docs,
rustdoc::missing_doc_code_examples,
unsafe_op_in_unsafe_fn,
rust_2018_idioms,
unreachable_pub,
bad_style,
Expand All @@ -349,13 +354,13 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
unconditional_recursion,
unused,
unused_allocation,
unused_comparisons,
unused_parens,
while_true
)]
#![allow(clippy::try_err)]

use std::sync::Arc;

Expand Down Expand Up @@ -418,8 +423,7 @@

/// The kind of type erased error being reported
#[cfg(feature = "issue-url")]
#[cfg_attr(docsrs, doc(cfg(feature = "issue-url")))]
pub enum ErrorKind<'a> {

Check warning on line 426 in color-eyre/src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable)

type does not implement `std::fmt::Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 426 in color-eyre/src/lib.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 426 in color-eyre/src/lib.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation

Check warning on line 426 in color-eyre/src/lib.rs

View workflow job for this annotation

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

type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation
/// A non recoverable error aka `panic!`
NonRecoverable(&'a dyn std::any::Any),
/// A recoverable error aka `impl std::error::Error`
Expand Down
2 changes: 0 additions & 2 deletions color-spantrace/.gitignore

This file was deleted.

4 changes: 3 additions & 1 deletion color-spantrace/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@
//!
//! [`tracing_error::SpanTrace`]: https://docs.rs/tracing-error/*/tracing_error/struct.SpanTrace.html
//! [`color-backtrace`]: https://github.com/athre0z/color-backtrace
#![doc(html_root_url = "https://docs.rs/color-spantrace/0.2.1")]
#![cfg_attr(
nightly,
feature(rustdoc_missing_doc_code_examples),
warn(rustdoc::missing_doc_code_examples)
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(
missing_debug_implementations,
missing_docs,
unsafe_op_in_unsafe_fn,
rust_2018_idioms,
unreachable_pub,
bad_style,
Expand All @@ -85,6 +86,7 @@
unused_parens,
while_true
)]

use once_cell::sync::OnceCell;
use owo_colors::{style, Style};
use std::env;
Expand Down
5 changes: 3 additions & 2 deletions eyre/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "eyre"
version = "1.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Jane Lusby <jlusby42@gmail.com>"]
description = "Flexible concrete Error Reporting type built on std::error::Error with customizable Reports"
documentation = "https://docs.rs/eyre"
categories = ["rust-patterns"]

authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand Down Expand Up @@ -39,7 +39,8 @@ pyo3 = { version = "0.25", default-features = false, features = ["auto-initializ

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "doc_cfg"]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.workspaces]
independent = true
Expand Down
4 changes: 2 additions & 2 deletions eyre/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn main() {
println!("cargo:rustc-check-cfg=cfg(eyre_no_fmt_args_capture)");
println!("cargo:rustc-check-cfg=cfg(backtrace)");
println!("cargo:rustc-check-cfg=cfg(eyre_no_fmt_arguments_as_str)");
println!("cargo:rustc-check-cfg=cfg(doc_cfg)");
println!("cargo:rustc-check-cfg=cfg(docsrs)");
let ac = autocfg::new();

// https://github.com/rust-lang/rust/issues/99301 [nightly]
Expand Down Expand Up @@ -49,7 +49,7 @@ const GENERIC_MEMBER_ACCESS_PROBE: &str = r#"
use std::fmt::{self, Display};

#[derive(Debug)]
struct E {
struct E {
backtrace: MyBacktrace,
}

Expand Down
3 changes: 1 addition & 2 deletions eyre/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,12 @@
//! [`simple-eyre`]: https://github.com/eyre-rs/simple-eyre
//! [`color-spantrace`]: https://github.com/eyre-rs/color-spantrace
//! [`color-backtrace`]: https://github.com/athre0z/color-backtrace
#![doc(html_root_url = "https://docs.rs/eyre/0.6.11")]
#![cfg_attr(
nightly,
feature(rustdoc_missing_doc_code_examples),
warn(rustdoc::missing_doc_code_examples)
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(
missing_debug_implementations,
missing_docs,
Expand All @@ -356,7 +356,6 @@
while_true
)]
#![cfg_attr(generic_member_access, feature(error_generic_member_access))]
#![cfg_attr(doc_cfg, feature(doc_cfg))]
#![allow(
clippy::needless_doctest_main,
clippy::new_ret_no_self,
Expand Down
Loading