clippy-fixes
This commit is contained in:
13
src/auth.rs
13
src/auth.rs
@@ -69,15 +69,12 @@ pub async fn get_id_by_token(token: &str) -> Result<String, Box<dyn Error>> {
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(Box::new(std::io::Error::new(
|
||||
std::io::ErrorKind::Other,
|
||||
"Invalid token response",
|
||||
)))
|
||||
Err(Box::new(std::io::Error::other("Invalid token response")))
|
||||
} else {
|
||||
Err(Box::new(std::io::Error::new(
|
||||
std::io::ErrorKind::Other,
|
||||
format!("Request failed with status: {}", response.status()),
|
||||
)))
|
||||
Err(Box::new(std::io::Error::other(format!(
|
||||
"Request failed with status: {}",
|
||||
response.status()
|
||||
))))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user