chore: someting

This commit is contained in:
GyDi 2021-12-19 14:07:13 +08:00
parent 694a7760b7
commit 860c44e93d

View File

@ -32,11 +32,10 @@ pub async fn fetch_profile(url: &str) -> Option<ProfileResponse> {
// parse the Subscription Userinfo // parse the Subscription Userinfo
let extra = { let extra = {
let sub_info = header let sub_info = match header.get("Subscription-Userinfo") {
.get("Subscription-Userinfo") Some(value) => value.to_str().unwrap_or(""),
.unwrap() None => "",
.to_str() };
.unwrap();
ProfileExtra { ProfileExtra {
upload: parse_string(sub_info, "upload=").unwrap_or(0), upload: parse_string(sub_info, "upload=").unwrap_or(0),