diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-04-01 15:53:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 15:53:13 +0200 |
| commit | 5e5b1bba510179a1c50f34b3a239f1913e7be78d (patch) | |
| tree | 520058fd817fcd4b5f3e523c5f665fed6916b098 /library/src/text | |
| parent | 9eb6174b22fa4824869fc5e923b96847c2968462 (diff) | |
Needless clone, borrows, casts and lifetimes (#504)
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/shaping.rs | 2 | ||||
| -rw-r--r-- | library/src/text/shift.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/src/text/shaping.rs b/library/src/text/shaping.rs index 4a62d538..b895b6f9 100644 --- a/library/src/text/shaping.rs +++ b/library/src/text/shaping.rs @@ -384,7 +384,7 @@ pub fn shape<'a>( } /// Shape text with font fallback using the `families` iterator. -fn shape_segment<'a>( +fn shape_segment( ctx: &mut ShapingContext, base: usize, text: &str, diff --git a/library/src/text/shift.rs b/library/src/text/shift.rs index 1bea3673..26978b87 100644 --- a/library/src/text/shift.rs +++ b/library/src/text/shift.rs @@ -135,7 +135,7 @@ fn search_text(content: &Content, sub: bool) -> Option<EcoString> { } else if let Some(children) = content.to_sequence() { let mut full = EcoString::new(); for item in children { - match search_text(&item, sub) { + match search_text(item, sub) { Some(text) => full.push_str(&text), None => return None, } |
