blob: ed43818fc2f8d720cda808a3d39b05544aadf17c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct Error {
pub message: String,
}
impl Error {
pub fn new(message: impl Into<String>) -> Error {
Error { message: message.into() }
}
}
|