generated from nhcarrigan/template
chore: more clippy
This commit is contained in:
@@ -97,11 +97,13 @@ impl BridgeManager {
|
|||||||
.ok_or_else(|| "No Claude instance found for this conversation".to_string())
|
.ok_or_else(|| "No Claude instance found for this conversation".to_string())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn cleanup_stopped_bridges(&mut self) {
|
pub fn cleanup_stopped_bridges(&mut self) {
|
||||||
// Remove bridges that are no longer running
|
// Remove bridges that are no longer running
|
||||||
self.bridges.retain(|_, bridge| bridge.is_running());
|
self.bridges.retain(|_, bridge| bridge.is_running());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn stop_all(&mut self) {
|
pub fn stop_all(&mut self) {
|
||||||
if let Some(app) = &self.app_handle {
|
if let Some(app) = &self.app_handle {
|
||||||
for (_, bridge) in self.bridges.iter_mut() {
|
for (_, bridge) in self.bridges.iter_mut() {
|
||||||
@@ -111,6 +113,7 @@ impl BridgeManager {
|
|||||||
self.bridges.clear();
|
self.bridges.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn get_active_conversations(&self) -> Vec<String> {
|
pub fn get_active_conversations(&self) -> Vec<String> {
|
||||||
self.bridges.keys()
|
self.bridges.keys()
|
||||||
.filter(|id| self.bridges.get(*id).map(|b| b.is_running()).unwrap_or(false))
|
.filter(|id| self.bridges.get(*id).map(|b| b.is_running()).unwrap_or(false))
|
||||||
|
|||||||
Reference in New Issue
Block a user