add from &'str

master
rascul 8 months ago
parent 4099874de2
commit 9fe4dcb85f

@ -63,6 +63,12 @@ impl From<String> for Rear {
}
}
impl From<&str> for Rear {
fn from(error: &str) -> Self {
Self { message: error.to_string(), error: error.into() }
}
}
#[cfg(feature = "askama")]
impl From<askama::Error> for Rear {
fn from(error: askama::Error) -> Self {

Loading…
Cancel
Save