Another batch of lint fixes (#36521)

- **Enable a bunch of extra lints**
- **First batch of fixes**
- **More fixes**

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-19 22:33:44 +02:00 committed by GitHub
parent 69b1c6d6f5
commit 6825715503
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
147 changed files with 788 additions and 1042 deletions

View file

@ -190,9 +190,8 @@ async fn get_context(
.await;
// Disable data collection for these requests, as this is currently just used for evals
match gather_context_output.as_mut() {
Ok(gather_context_output) => gather_context_output.body.can_collect_data = false,
Err(_) => {}
if let Ok(gather_context_output) = gather_context_output.as_mut() {
gather_context_output.body.can_collect_data = false
}
gather_context_output
@ -277,8 +276,8 @@ pub fn wait_for_lang_server(
let subscriptions = [
cx.subscribe(&lsp_store, {
let log_prefix = log_prefix.clone();
move |_, event, _| match event {
project::LspStoreEvent::LanguageServerUpdate {
move |_, event, _| {
if let project::LspStoreEvent::LanguageServerUpdate {
message:
client::proto::update_language_server::Variant::WorkProgress(
client::proto::LspWorkProgress {
@ -287,8 +286,10 @@ pub fn wait_for_lang_server(
},
),
..
} => println!("{}{message}", log_prefix),
_ => {}
} = event
{
println!("{}{message}", log_prefix)
}
}
}),
cx.subscribe(project, {