refactor: seperate highlevel into 2 individual files
This commit is contained in:
@@ -65,7 +65,7 @@ fn stringified_exts_to_indices(
|
||||
|
||||
// If star is present alone, return fixed list from zero to the maximum ext index.
|
||||
if has_star {
|
||||
return Ok((0..program.get_ext_count()).collect());
|
||||
return Ok((0..program.exts_len()).collect());
|
||||
}
|
||||
|
||||
// Convert each extension name to index using program.find_ext()
|
||||
@@ -138,7 +138,7 @@ fn run_ext_list(
|
||||
) -> Result<()> {
|
||||
// Fetch info
|
||||
let mut ext_list: HashMap<String, Option<String>> = HashMap::new();
|
||||
for index in 0..program.get_ext_count() {
|
||||
for index in 0..program.exts_len() {
|
||||
let ext = program.get_ext(index)?;
|
||||
let status = program.query_ext(view, index)?;
|
||||
ext_list.insert(ext.dotted_inner(), status.map(|s| s.get_name().to_string()));
|
||||
|
||||
Reference in New Issue
Block a user