ide-ssr: Fix warnings about clippy str_to_string rule

This commit is contained in:
Tetsuharu Ohzeki 2024-02-10 00:49:00 +09:00
parent fb8c0f514e
commit ae78dcae75
2 changed files with 3 additions and 3 deletions

View file

@ -152,7 +152,7 @@ impl FromStr for SsrRule {
.next()
.ok_or_else(|| SsrError("Cannot find delimiter `==>>`".into()))?
.trim()
.to_string();
.to_owned();
if it.next().is_some() {
return Err(SsrError("More than one delimiter found".into()));
}