huskies: merge 927
This commit is contained in:
@@ -409,6 +409,7 @@ pub async fn swap_to_next_available_account(
|
||||
///
|
||||
/// Returns the URL portion when the error indicates missing or expired credentials,
|
||||
/// `None` otherwise.
|
||||
#[allow(clippy::string_slice)] // start + marker.len() is after the ASCII marker found by find() → valid boundary
|
||||
pub fn extract_login_url_from_error(err: &str) -> Option<&str> {
|
||||
let marker = "Please log in: ";
|
||||
let start = err.find(marker)?;
|
||||
|
||||
Reference in New Issue
Block a user