From e098c6d2424a440fc490ac8fa52d747f49a6dd91 Mon Sep 17 00:00:00 2001 From: Anton Vice Date: Sat, 7 Mar 2026 09:34:46 -0500 Subject: [PATCH] fix: resolve unused import warnings in channels and peripherals --- src/config/schema.rs | 2 +- src/peripherals/mod.rs | 1 + src/peripherals/rpi.rs | 2 +- src/peripherals/serial.rs | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config/schema.rs b/src/config/schema.rs index 6366a169d..1b8d6e70e 100644 --- a/src/config/schema.rs +++ b/src/config/schema.rs @@ -2588,7 +2588,7 @@ pub struct ChannelsConfig { pub qq: Option, pub nostr: Option, /// ClawdTalk voice channel configuration. - pub clawdtalk: Option, + pub clawdtalk: Option, /// Base timeout in seconds for processing a single channel message (LLM + tools). /// Runtime uses this as a per-turn budget that scales with tool-loop depth /// (up to 4x, capped) so one slow/retried model call does not consume the diff --git a/src/peripherals/mod.rs b/src/peripherals/mod.rs index 8c3a59a8d..367226b48 100644 --- a/src/peripherals/mod.rs +++ b/src/peripherals/mod.rs @@ -24,6 +24,7 @@ pub mod uno_q_setup; #[cfg(all(feature = "peripheral-rpi", target_os = "linux"))] pub mod rpi; +#[cfg(any(feature = "hardware", feature = "peripheral-rpi"))] pub use traits::Peripheral; use crate::config::{Config, PeripheralBoardConfig, PeripheralsConfig}; diff --git a/src/peripherals/rpi.rs b/src/peripherals/rpi.rs index 6cea07570..52c344b56 100644 --- a/src/peripherals/rpi.rs +++ b/src/peripherals/rpi.rs @@ -4,7 +4,7 @@ //! Uses BCM pin numbering (e.g. GPIO 17, 27). use crate::config::PeripheralBoardConfig; -use crate::peripherals::traits::Peripheral; +use crate::peripherals::Peripheral; use crate::tools::{Tool, ToolResult}; use async_trait::async_trait; use serde_json::{json, Value}; diff --git a/src/peripherals/serial.rs b/src/peripherals/serial.rs index 2bcec56c8..da2c2c146 100644 --- a/src/peripherals/serial.rs +++ b/src/peripherals/serial.rs @@ -4,7 +4,7 @@ //! Request: {"id":"1","cmd":"gpio_write","args":{"pin":13,"value":1}} //! Response: {"id":"1","ok":true,"result":"done"} -use super::traits::Peripheral; +use crate::peripherals::Peripheral; use crate::config::PeripheralBoardConfig; use crate::tools::traits::{Tool, ToolResult}; use async_trait::async_trait;