language_models: Don't mark local subscription binding as unused (#30867)

This PR removes an instance of marking a local `Subscription` binding as
unused.

While we `_` the field to prevent unused warnings, the locals shouldn't
be marked as unused as we do use them (and want them to participate in
usage tracking).

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-05-17 12:23:08 +02:00 committed by GitHub
parent 03419da6f1
commit c80bd698f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,10 +60,10 @@ impl State {
impl CopilotChatLanguageModelProvider {
pub fn new(cx: &mut App) -> Self {
let state = cx.new(|cx| {
let _copilot_chat_subscription = CopilotChat::global(cx)
let copilot_chat_subscription = CopilotChat::global(cx)
.map(|copilot_chat| cx.observe(&copilot_chat, |_, _, cx| cx.notify()));
State {
_copilot_chat_subscription,
_copilot_chat_subscription: copilot_chat_subscription,
_settings_subscription: cx.observe_global::<SettingsStore>(|_, cx| {
cx.notify();
}),