more doc updates

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-11-25 15:00:34 +01:00
parent 204bff669b
commit 4bb84e440f

View File

@ -1,9 +1,11 @@
use thiserror::Error as ThisError;
/// Error returned by `TryFrom` implementations between `Scalar`, `Array` and `Hash`.
#[derive(ThisError, Debug)]
#[error("wrong type")]
pub struct CastError;
/// Generic errors from the perlmod crate.
#[derive(ThisError, Clone, Debug)]
#[error("error: {0}")]
pub struct Error(pub(crate) String);