Remove pointless map_err calls.

This commit is contained in:
Tom Alexander
2023-10-17 11:56:36 -04:00
parent 05c64f53b1
commit d20b4a410b
2 changed files with 8 additions and 13 deletions

View File

@@ -35,3 +35,9 @@ impl From<&'static str> for CustomError {
CustomError::Static(value)
}
}
impl From<String> for CustomError {
fn from(value: String) -> Self {
CustomError::Text(value)
}
}