mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Lint layout_2020 with clippy (#31169)
cargo clippy --fix -p layout_2020 --allow-dirty --broken-code
This commit is contained in:
parent
886f6c58d4
commit
50f56affe3
30 changed files with 224 additions and 244 deletions
|
@ -71,11 +71,11 @@ impl BlockFormattingContext {
|
|||
ends_with_whitespace: false,
|
||||
};
|
||||
let contents = BlockContainer::InlineFormattingContext(ifc);
|
||||
let bfc = Self {
|
||||
|
||||
Self {
|
||||
contents,
|
||||
contains_floats: false,
|
||||
};
|
||||
bfc
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -442,8 +442,8 @@ fn preserve_segment_break() -> bool {
|
|||
///
|
||||
/// Returns the transformed text as a [String] and also whether or not the input had
|
||||
/// any uncollapsible content.
|
||||
fn collapse_and_transform_whitespace<'text>(
|
||||
input: &'text str,
|
||||
fn collapse_and_transform_whitespace(
|
||||
input: &str,
|
||||
white_space: WhiteSpace,
|
||||
trim_beginning_white_space: bool,
|
||||
) -> (String, bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue