Fix clippy::needless_borrow lint violations (#36444)
Release Notes: - N/A
This commit is contained in:
parent
eecf142f06
commit
9e0e233319
242 changed files with 801 additions and 821 deletions
|
@ -348,7 +348,7 @@ impl HeadlessProject {
|
|||
.iter()
|
||||
.map(|action| action.title.to_string())
|
||||
.collect(),
|
||||
level: Some(prompt_to_proto(&prompt)),
|
||||
level: Some(prompt_to_proto(prompt)),
|
||||
lsp_name: prompt.lsp_name.clone(),
|
||||
message: prompt.message.clone(),
|
||||
});
|
||||
|
@ -388,7 +388,7 @@ impl HeadlessProject {
|
|||
let parent = fs.canonicalize(parent).await.map_err(|_| {
|
||||
anyhow!(
|
||||
proto::ErrorCode::DevServerProjectPathDoesNotExist
|
||||
.with_tag("path", &path.to_string_lossy().as_ref())
|
||||
.with_tag("path", path.to_string_lossy().as_ref())
|
||||
)
|
||||
})?;
|
||||
parent.join(path.file_name().unwrap())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue