Fix clippy wanings in layout (#33215)

Signed-off-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
atbrakhi 2024-08-27 22:53:43 +02:00 committed by GitHub
parent 12661c1920
commit 2037884469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View file

@ -374,7 +374,7 @@ impl TextRun {
specified_word_spacing.to_used_value(Au::from_f64_px(space_width))
});
let mut flags = flags.clone();
let mut flags = flags;
if segment.bidi_level.is_rtl() {
flags.insert(ShapingFlags::RTL_FLAG);
}