mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
ide-ssr: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
fb8c0f514e
commit
ae78dcae75
2 changed files with 3 additions and 3 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue