onlyerror 0.1.5

Obsessively tiny error derive macro
Documentation
1
2
3
4
5
6
7
8
9
10
11
error[E0277]: `Error` doesn't implement `std::fmt::Display`
 --> compile_tests/no_display_no_impl.rs:3:17
  |
3 | #[derive(Debug, onlyerror::Error)]
  |                 ^^^^^^^^^^^^^^^^ `Error` cannot be formatted with the default formatter
  |
  = help: the trait `std::fmt::Display` is not implemented for `Error`
  = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `std::error::Error`
 --> $RUST/core/src/error.rs
  = note: this error originates in the derive macro `onlyerror::Error` (in Nightly builds, run with -Z macro-backtrace for more info)