mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
chore: update to Rust 1.73 (#20781)
This commit is contained in:
parent
ab3c9d41e4
commit
7a01799f49
10 changed files with 30 additions and 40 deletions
|
@ -26,7 +26,7 @@ pub fn merge_processes(
|
|||
for script_cov in process_cov.result {
|
||||
url_to_scripts
|
||||
.entry(script_cov.url.clone())
|
||||
.or_insert_with(Vec::new)
|
||||
.or_default()
|
||||
.push(script_cov);
|
||||
}
|
||||
}
|
||||
|
@ -66,10 +66,7 @@ pub fn merge_scripts(
|
|||
end: root_range_cov.end_char_offset,
|
||||
}
|
||||
};
|
||||
range_to_funcs
|
||||
.entry(root_range)
|
||||
.or_insert_with(Vec::new)
|
||||
.push(func_cov);
|
||||
range_to_funcs.entry(root_range).or_default().push(func_cov);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -103,11 +100,7 @@ impl Ord for CharRange {
|
|||
|
||||
impl PartialOrd for CharRange {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<::std::cmp::Ordering> {
|
||||
if self.start != other.start {
|
||||
self.start.partial_cmp(&other.start)
|
||||
} else {
|
||||
other.end.partial_cmp(&self.end)
|
||||
}
|
||||
Some(self.cmp(other))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -167,7 +160,7 @@ fn into_start_events<'a>(trees: Vec<&'a mut RangeTree<'a>>) -> Vec<StartEvent> {
|
|||
for child in tree.children.drain(..) {
|
||||
result
|
||||
.entry(child.start)
|
||||
.or_insert_with(Vec::new)
|
||||
.or_default()
|
||||
.push((parent_index, child));
|
||||
}
|
||||
}
|
||||
|
@ -294,7 +287,7 @@ fn merge_range_tree_children<'a>(
|
|||
};
|
||||
parent_to_nested
|
||||
.entry(parent_index)
|
||||
.or_insert_with(Vec::new)
|
||||
.or_default()
|
||||
.push(child);
|
||||
}
|
||||
}
|
||||
|
@ -312,10 +305,7 @@ fn merge_range_tree_children<'a>(
|
|||
flat_children[parent_index].push(tree);
|
||||
continue;
|
||||
}
|
||||
parent_to_nested
|
||||
.entry(parent_index)
|
||||
.or_insert_with(Vec::new)
|
||||
.push(tree);
|
||||
parent_to_nested.entry(parent_index).or_default().push(tree);
|
||||
}
|
||||
start_event_queue.set_pending_offset(open_range_end);
|
||||
open_range = Some(CharRange {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue