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/shift.rs | |
| parent | 9eb6174b22fa4824869fc5e923b96847c2968462 (diff) | |
Needless clone, borrows, casts and lifetimes (#504)
Diffstat (limited to 'library/src/text/shift.rs')
| -rw-r--r-- | library/src/text/shift.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, } |
