mirror of https://github.com/lapce/lapce.git
fix: clippy::unnecessary_to_owned
This commit is contained in:
parent
dc2782a82a
commit
632656c3f6
|
@ -111,7 +111,7 @@ fn extract_text(
|
|||
.map(|e| format!("\\{}", e))
|
||||
.any(|x| x == *esc)
|
||||
{
|
||||
ele = ele + &s[1..2].to_string();
|
||||
ele = ele + &s[1..2];
|
||||
end += 2;
|
||||
s = &s[2..];
|
||||
continue;
|
||||
|
@ -120,7 +120,7 @@ fn extract_text(
|
|||
if escs.contains(&&s[0..1]) {
|
||||
break;
|
||||
}
|
||||
ele = ele + &s[0..1].to_string();
|
||||
ele = ele + &s[0..1];
|
||||
end += 1;
|
||||
s = &s[1..];
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ fn extract_text(
|
|||
.map(|e| format!("\\{}", e))
|
||||
.any(|x| x == *esc)
|
||||
{
|
||||
ele = ele + &s[1..2].to_string();
|
||||
ele = ele + &s[1..2];
|
||||
end += 2;
|
||||
s = &s[2..];
|
||||
continue;
|
||||
|
@ -131,7 +131,7 @@ fn extract_text(
|
|||
if escs.contains(&&s[0..1]) {
|
||||
break;
|
||||
}
|
||||
ele = ele + &s[0..1].to_string();
|
||||
ele = ele + &s[0..1];
|
||||
end += 1;
|
||||
s = &s[1..];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue