diff --git a/src/beacon_api.rs b/src/beacon_api.rs index 2ccabc7..48737c5 100644 --- a/src/beacon_api.rs +++ b/src/beacon_api.rs @@ -46,10 +46,10 @@ pub struct BeaconApi { } impl BeaconApi { - pub fn new(nodes: &Vec) -> Self { + pub fn new(nodes: &[Url]) -> Self { if !nodes.is_empty() { Self { - nodes: nodes.clone(), + nodes: nodes.to_vec(), client: reqwest::Client::new(), } } else {