|
325 | 325 | //! [`eyre::EyreHandler`]: https://docs.rs/eyre/*/eyre/trait.EyreHandler.html |
326 | 326 | //! [`backtrace::Backtrace`]: https://docs.rs/backtrace/*/backtrace/struct.Backtrace.html |
327 | 327 | //! [`tracing_error::SpanTrace`]: https://docs.rs/tracing-error/*/tracing_error/struct.SpanTrace.html |
328 | | -//! [`color-spantrace`]: https://github.com/yaahc/color-spantrace |
| 328 | +//! [`color-spantrace`]: https://docs.rs/color-spantrace |
329 | 329 | //! [`Section`]: https://docs.rs/color-eyre/*/color_eyre/trait.Section.html |
330 | 330 | //! [`eyre::Report`]: https://docs.rs/eyre/*/eyre/struct.Report.html |
331 | 331 | //! [`eyre::Result`]: https://docs.rs/eyre/*/eyre/type.Result.html |
332 | 332 | //! [`Handler`]: https://docs.rs/color-eyre/*/color_eyre/struct.Handler.html |
333 | | -//! [`examples/usage.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/usage.rs |
334 | | -//! [`examples/custom_filter.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/custom_filter.rs |
335 | | -//! [`examples/custom_section.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/custom_section.rs |
336 | | -//! [`examples/multiple_errors.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/multiple_errors.rs |
337 | | -#![doc(html_root_url = "https://docs.rs/color-eyre/0.6.2")] |
338 | | -#![cfg_attr(docsrs, feature(doc_cfg))] |
| 333 | +//! [`examples/usage.rs`]: https://github.com/eyre-rs/eyre/blob/master/color-eyre/examples/usage.rs |
| 334 | +//! [`examples/custom_filter.rs`]: https://github.com/eyre-rs/eyre/blob/master/color-eyre/examples/custom_filter.rs |
| 335 | +//! [`examples/custom_section.rs`]: https://github.com/eyre-rs/eyre/blob/master/color-eyre/examples/custom_section.rs |
| 336 | +//! [`examples/multiple_errors.rs`]: https://github.com/eyre-rs/eyre/blob/master/color-eyre/examples/multiple_errors.rs |
| 337 | +#![cfg_attr( |
| 338 | + nightly, |
| 339 | + feature(rustdoc_missing_doc_code_examples), |
| 340 | + warn(rustdoc::missing_doc_code_examples) |
| 341 | +)] |
| 342 | +#![cfg_attr(docsrs, feature(doc_auto_cfg))] |
339 | 343 | #![warn( |
| 344 | + missing_debug_implementations, |
340 | 345 | missing_docs, |
341 | | - rustdoc::missing_doc_code_examples, |
| 346 | + unsafe_op_in_unsafe_fn, |
342 | 347 | rust_2018_idioms, |
343 | 348 | unreachable_pub, |
344 | 349 | bad_style, |
|
349 | 354 | overflowing_literals, |
350 | 355 | path_statements, |
351 | 356 | patterns_in_fns_without_body, |
| 357 | + unconditional_recursion, |
352 | 358 | unused, |
353 | 359 | unused_allocation, |
354 | 360 | unused_comparisons, |
355 | 361 | unused_parens, |
356 | 362 | while_true |
357 | 363 | )] |
358 | | -#![allow(clippy::try_err)] |
359 | 364 |
|
360 | 365 | use std::sync::Arc; |
361 | 366 |
|
@@ -418,7 +423,6 @@ pub struct Handler { |
418 | 423 |
|
419 | 424 | /// The kind of type erased error being reported |
420 | 425 | #[cfg(feature = "issue-url")] |
421 | | -#[cfg_attr(docsrs, doc(cfg(feature = "issue-url")))] |
422 | 426 | pub enum ErrorKind<'a> { |
423 | 427 | /// A non recoverable error aka `panic!` |
424 | 428 | NonRecoverable(&'a dyn std::any::Any), |
|
0 commit comments