diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2f107b..014e490 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/eyre/src/lib.rs b/eyre/src/lib.rs index 52828b0..ea00ac1 100644 --- a/eyre/src/lib.rs +++ b/eyre/src/lib.rs @@ -624,7 +624,6 @@ fn capture_handler(error: &(dyn StdError + 'static)) -> Box { } impl dyn EyreHandler { - /// pub fn is(&self) -> bool { // Get `TypeId` of the type this function is instantiated with. let t = core::any::TypeId::of::(); @@ -636,7 +635,6 @@ impl dyn EyreHandler { t == concrete } - /// pub fn downcast_ref(&self) -> Option<&T> { if self.is::() { unsafe { Some(&*(self as *const dyn EyreHandler as *const T)) } @@ -645,7 +643,6 @@ impl dyn EyreHandler { } } - /// pub fn downcast_mut(&mut self) -> Option<&mut T> { if self.is::() { unsafe { Some(&mut *(self as *mut dyn EyreHandler as *mut T)) }