File: transparent-struct-many.rs

package info (click to toggle)
rust-thiserror 1.0.38-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 376 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 148 bytes parent folder | download | duplicates (83)
1
2
3
4
5
6
7
8
9
10
use thiserror::Error;

#[derive(Error, Debug)]
#[error(transparent)]
pub struct Error {
    inner: anyhow::Error,
    what: String,
}

fn main() {}