Skip to content

Commit

Permalink
remove unnecessary .to_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Nov 12, 2024
1 parent 2578807 commit 9930ef7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/remote_node_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ pub enum Error {
/// use crate::remote_node_index::list;
/// ```
pub fn list(base_url: &Url) -> Result<Vec<IndexedNodeVersion>, Error> {
let base_url = base_url.to_string();
let base_url = base_url.trim_end_matches('/');
let base_url = base_url.as_str().trim_end_matches('/');
let index_json_url = format!("{base_url}/index.json");
let resp = crate::http::get(&index_json_url)
.map_err(crate::http::Error::from)?
Expand Down

0 comments on commit 9930ef7

Please sign in to comment.