Update trait object syntax to use 'dyn'

This commit is contained in:
Sean McArthur
2019-06-03 13:14:33 -07:00
parent 1d26d7b472
commit 964d87ce57
7 changed files with 10 additions and 10 deletions

View File

@@ -379,7 +379,7 @@ impl Intercept {
struct Custom {
// This auth only applies if the returned ProxyScheme doesn't have an auth...
auth: Option<HeaderValue>,
func: Arc<Fn(&Url) -> Option<::Result<ProxyScheme>> + Send + Sync + 'static>,
func: Arc<dyn Fn(&Url) -> Option<::Result<ProxyScheme>> + Send + Sync + 'static>,
}
impl Custom {