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:
committed by
Nikolay Kim
parent
b0aa9395da
commit
30dcaf9da0
@ -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;
|
||||
|
Reference in New Issue
Block a user