diff --git a/src/extensions/validator/mod.rs b/src/extensions/validator/mod.rs index cdecfde..742ae93 100644 --- a/src/extensions/validator/mod.rs +++ b/src/extensions/validator/mod.rs @@ -26,7 +26,7 @@ impl Extension for Validator { let clients = client .endpoints() .iter() - .map(|e| Arc::new(Client::with_endpoints(&[e]).expect("Unable to create client"))) + .map(|e| Arc::new(Client::with_endpoints([e]).expect("Unable to create client"))) .collect(); Ok(Self::new(config.clone(), clients))