Skip to content

Commit

Permalink
feat(beacon_api): prefer slice
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes committed Feb 8, 2024
1 parent 263fd69 commit a0e2f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/beacon_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ pub struct BeaconApi {
}

impl BeaconApi {
pub fn new(nodes: &Vec<Url>) -> Self {
pub fn new(nodes: &[Url]) -> Self {
if !nodes.is_empty() {
Self {
nodes: nodes.clone(),
nodes: nodes.to_vec(),
client: reqwest::Client::new(),
}
} else {
Expand Down

0 comments on commit a0e2f82

Please sign in to comment.