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
|
@ -50,7 +50,7 @@ impl State {
|
|||
}
|
||||
}
|
||||
|
||||
pub const ZED_WEB_SEARCH_PROVIDER_ID: &'static str = "zed.dev";
|
||||
pub const ZED_WEB_SEARCH_PROVIDER_ID: &str = "zed.dev";
|
||||
|
||||
impl WebSearchProvider for CloudWebSearchProvider {
|
||||
fn id(&self) -> WebSearchProviderId {
|
||||
|
|
|
@ -27,11 +27,10 @@ fn register_web_search_providers(
|
|||
|
||||
cx.subscribe(
|
||||
&LanguageModelRegistry::global(cx),
|
||||
move |this, registry, event, cx| match event {
|
||||
language_model::Event::DefaultModelChanged => {
|
||||
move |this, registry, event, cx| {
|
||||
if let language_model::Event::DefaultModelChanged = event {
|
||||
register_zed_web_search_provider(this, client.clone(), ®istry, cx)
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
)
|
||||
.detach();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue