mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Finish updating to the latest Rust/handle broken cargo update
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user