Finish updating to the latest Rust/handle broken cargo update

This commit is contained in:
Luke Parker
2023-04-01 05:44:18 -04:00
parent 3f4bab7f7b
commit 648d237df5
3 changed files with 12 additions and 12 deletions

View File

@@ -87,7 +87,7 @@ impl Rpc {
pub fn new(mut url: String) -> Result<Rpc, RpcError> {
// Parse out the username and password
let userpass = if url.contains('@') {
let url_clone = url.clone();
let url_clone = url;
let split_url = url_clone.split('@').collect::<Vec<_>>();
if split_url.len() != 2 {
Err(RpcError::InvalidNode)?;