mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-18 16:20:18 +00:00
proc-macro-api: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
5d1f2835af
commit
b89a4038c9
4 changed files with 6 additions and 6 deletions
|
@ -78,7 +78,7 @@ impl ProcMacroProcessSrv {
|
|||
|
||||
match response {
|
||||
Response::ApiVersionCheck(version) => Ok(version),
|
||||
_ => Err(ServerError { message: "unexpected response".to_string(), io: None }),
|
||||
_ => Err(ServerError { message: "unexpected response".to_owned(), io: None }),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ impl ProcMacroProcessSrv {
|
|||
|
||||
match response {
|
||||
Response::SetConfig(crate::msg::ServerConfig { span_mode }) => Ok(span_mode),
|
||||
_ => Err(ServerError { message: "unexpected response".to_string(), io: None }),
|
||||
_ => Err(ServerError { message: "unexpected response".to_owned(), io: None }),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ impl ProcMacroProcessSrv {
|
|||
|
||||
match response {
|
||||
Response::ListMacros(it) => Ok(it),
|
||||
_ => Err(ServerError { message: "unexpected response".to_string(), io: None }),
|
||||
_ => Err(ServerError { message: "unexpected response".to_owned(), io: None }),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue