Fix overlooked Clippy lints (#36659)

Follow-up of https://github.com/zed-industries/zed/pull/36557 that is
needed after https://github.com/zed-industries/zed/pull/36652

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-08-21 09:48:04 +03:00 committed by GitHub
parent cde0a5dd27
commit ed84767c9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -5693,13 +5693,13 @@ impl LspStore {
let lsp_data = lsp_store.lsp_code_lens.entry(buffer_id).or_default();
if let Some(fetched_lens) = fetched_lens {
if lsp_data.lens_for_version == query_version_queried_for {
lsp_data.lens.extend(fetched_lens.clone());
lsp_data.lens.extend(fetched_lens);
} else if !lsp_data
.lens_for_version
.changed_since(&query_version_queried_for)
{
lsp_data.lens_for_version = query_version_queried_for;
lsp_data.lens = fetched_lens.clone();
lsp_data.lens = fetched_lens;
}
}
lsp_data.update = None;
@ -6694,14 +6694,14 @@ impl LspStore {
if let Some(fetched_colors) = fetched_colors {
if lsp_data.colors_for_version == query_version_queried_for {
lsp_data.colors.extend(fetched_colors.clone());
lsp_data.colors.extend(fetched_colors);
lsp_data.cache_version += 1;
} else if !lsp_data
.colors_for_version
.changed_since(&query_version_queried_for)
{
lsp_data.colors_for_version = query_version_queried_for;
lsp_data.colors = fetched_colors.clone();
lsp_data.colors = fetched_colors;
lsp_data.cache_version += 1;
}
}

View file

@ -248,7 +248,7 @@ impl AnyProtoClient {
let query = proto::LspQuery {
project_id,
lsp_request_id: new_id.0,
request: Some(request.clone().to_proto_query()),
request: Some(request.to_proto_query()),
};
let request = self.request(query);
let request_ids = self.0.request_ids.clone();