From a6864b1825957163631d54450698e1e4cf6d0c8b Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Mon, 4 Dec 2023 19:28:48 +0000 Subject: [PATCH] [para-api] cargo fmt --- src/lib.rs | 7 ++++++- src/utf16.rs | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 683e1b1..9d0be89 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -841,7 +841,12 @@ impl<'text> ParagraphBidiInfo<'text> { } // Implementation of reorder_line for both BidiInfo and ParagraphBidiInfo. -fn reorder_line<'text>(text: &'text str, line: Range, levels: Vec, runs: Vec) -> Cow<'text, str> { +fn reorder_line<'text>( + text: &'text str, + line: Range, + levels: Vec, + runs: Vec, +) -> Cow<'text, str> { // If all isolating run sequences are LTR, no reordering is needed if runs.iter().all(|run| levels[run.start].is_ltr()) { return text[line].into(); diff --git a/src/utf16.rs b/src/utf16.rs index 9cea2ea..d197e24 100644 --- a/src/utf16.rs +++ b/src/utf16.rs @@ -524,7 +524,12 @@ impl<'text> ParagraphBidiInfo<'text> { } // Implementation of reorder_line for both BidiInfo and ParagraphBidiInfo. -fn reorder_line<'text>(text: &'text [u16], line: Range, levels: Vec, runs: Vec) -> Cow<'text, [u16]> { +fn reorder_line<'text>( + text: &'text [u16], + line: Range, + levels: Vec, + runs: Vec, +) -> Cow<'text, [u16]> { // If all isolating run sequences are LTR, no reordering is needed if runs.iter().all(|run| levels[run.start].is_ltr()) { return text[line].into();