mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
clippy: Fix several warnings (#31710)
Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
This commit is contained in:
parent
1ab8fa2895
commit
f6a975fc58
23 changed files with 75 additions and 86 deletions
|
@ -1122,7 +1122,6 @@ impl<'a, 'b> InlineFormattingContextState<'a, 'b> {
|
|||
.placement_among_floats
|
||||
.get_or_init(|| self.place_line_among_floats(potential_line_size))
|
||||
.size
|
||||
.clone()
|
||||
} else {
|
||||
LogicalVec2 {
|
||||
inline: self.containing_block.inline_size.into(),
|
||||
|
@ -1991,9 +1990,7 @@ impl IndependentFormattingContext {
|
|||
None,
|
||||
&pbm,
|
||||
);
|
||||
let fragments = replaced
|
||||
.contents
|
||||
.make_fragments(&replaced.style, size.clone());
|
||||
let fragments = replaced.contents.make_fragments(&replaced.style, size);
|
||||
let content_rect = LogicalRect {
|
||||
start_corner: pbm_sums.start_offset(),
|
||||
size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue