mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
build: upgrade rustc to 1.81.0 (#34270)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
26f61103d6
commit
7fcde1f7a3
15 changed files with 16 additions and 26 deletions
|
@ -232,13 +232,12 @@ impl InlineFormattingContextBuilder {
|
|||
|
||||
let white_space_collapse = info.style.clone_white_space_collapse();
|
||||
let new_text: String = char_iterator
|
||||
.map(|character| {
|
||||
.inspect(|&character| {
|
||||
self.has_uncollapsible_text_content |= matches!(
|
||||
white_space_collapse,
|
||||
WhiteSpaceCollapse::Preserve | WhiteSpaceCollapse::BreakSpaces
|
||||
) || !character.is_ascii_whitespace() ||
|
||||
(character == '\n' && white_space_collapse != WhiteSpaceCollapse::Collapse);
|
||||
character
|
||||
})
|
||||
.collect();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue