1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 06:57:43 +02:00

fix deprecated Error::description (#1218)

This commit is contained in:
Andrii Radyk
2019-12-16 02:43:19 +01:00
committed by Nikolay Kim
parent b0aa9395da
commit 30dcaf9da0
2 changed files with 4 additions and 13 deletions

View File

@ -51,11 +51,7 @@ impl From<Utf8Error> for ParseError {
}
}
impl Error for ParseError {
fn description(&self) -> &str {
self.as_str()
}
}
impl Error for ParseError {}
fn indexes_of(needle: &str, haystack: &str) -> Option<(usize, usize)> {
let haystack_start = haystack.as_ptr() as usize;