1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-30 08:24:28 +02:00

soft-deprecate NormalizePath::default in v3 (#2529)

This commit is contained in:
Rob Ede
2021-12-18 22:57:23 +00:00
committed by GitHub
parent c9c36679e4
commit 0669ed0f06
5 changed files with 24 additions and 5 deletions

View File

@ -55,7 +55,7 @@ impl Error {
/// Similar to `as_response_error` but downcasts.
pub fn as_error<T: ResponseError + 'static>(&self) -> Option<&T> {
ResponseError::downcast_ref(self.cause.as_ref())
<dyn ResponseError>::downcast_ref(self.cause.as_ref())
}
}