From 56673bcdf5a8be0f89a3781a5ce392736823dc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Barv=C3=AD=C5=99?= Date: Tue, 18 Apr 2023 11:19:09 +0200 Subject: Clippy fixes (#856) --- library/src/layout/par.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'library/src/layout') diff --git a/library/src/layout/par.rs b/library/src/layout/par.rs index 29a82a01..8bede473 100644 --- a/library/src/layout/par.rs +++ b/library/src/layout/par.rs @@ -506,6 +506,7 @@ impl<'a> Line<'a> { /// Collect all text of the paragraph into one string. This also performs /// string-level preprocessing like case transformations. +#[allow(clippy::type_complexity)] fn collect<'a>( children: &'a [Content], styles: &'a StyleChain<'a>, @@ -715,7 +716,7 @@ fn shape_range<'a>( let mut cursor = range.start; // Group by embedding level and script. - for i in cursor..range.end { + for i in range.clone() { if !bidi.text.is_char_boundary(i) { continue; } -- cgit v1.2.3