This commit is contained in:
kdeng00
2025-08-27 16:28:50 -04:00
parent ea723d87f2
commit 15effe60c5
2 changed files with 5 additions and 6 deletions
-1
View File
@@ -182,7 +182,6 @@ impl CommitManager {
apis: vec![models::api::Api::default(), models::api::Api::default()], apis: vec![models::api::Api::default(), models::api::Api::default()],
ica_act: self.ica_action.clone(), ica_act: self.ica_action.clone(),
}; };
// parsers::api_parser::APIType
prsr.parse_api(parsers::api_parser::APIType::Main); prsr.parse_api(parsers::api_parser::APIType::Main);
prsr.parse_api(parsers::api_parser::APIType::Auth); prsr.parse_api(parsers::api_parser::APIType::Auth);
+5 -5
View File
@@ -35,7 +35,7 @@ impl APIParser {
if value.chars().nth(value.len() - 1) == Some('/') { if value.chars().nth(value.len() - 1) == Some('/') {
self.apis[0].url = value; self.apis[0].url = value;
} else { } else {
self.apis[0].url = value + "/"; self.apis[0].url = format!("{value}/");
} }
break; break;
} }
@@ -45,7 +45,7 @@ impl APIParser {
if value.chars().nth(value.len() - 1) == Some('/') { if value.chars().nth(value.len() - 1) == Some('/') {
self.apis[1].url = value; self.apis[1].url = value;
} else { } else {
self.apis[1].url = value + "/"; self.apis[1].url = format!("{value}/");
} }
break; break;
} }
@@ -53,8 +53,8 @@ impl APIParser {
} }
} }
// for api in self.apis { for api in &mut self.apis {
// } api.version = String::from(API_VERSION);
// self.api.version = String::from(API_VERSION); }
} }
} }