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:
parent
69b1c6d6f5
commit
6825715503
147 changed files with 788 additions and 1042 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue