Skip to content

Commit bdc7c90

Browse files
Copilotyiwang
andcommitted
Fix cargo fmt formatting issues
Co-authored-by: yiwang <142937+yiwang@users.noreply.github.com>
1 parent c59297a commit bdc7c90

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

crates/cli/src/cli/daemon.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ async fn run_daemon_services(config: &Config, agent_id: &str) -> Result<()> {
202202
crate::tools::create_cli_tools(config)
203203
});
204204

205-
if let Err(e) = localgpt_server::telegram::run_telegram_bot(&tg_config, tg_gate, Some(tool_factory)).await {
205+
if let Err(e) =
206+
localgpt_server::telegram::run_telegram_bot(&tg_config, tg_gate, Some(tool_factory))
207+
.await
208+
{
206209
tracing::error!("Telegram bot error: {}", e);
207210
}
208211
}))

crates/server/src/telegram.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ fn generate_pairing_code() -> String {
8383
format!("{:06}", code)
8484
}
8585

86-
pub async fn run_telegram_bot(config: &Config, turn_gate: TurnGate, tool_factory: Option<ToolFactory>) -> Result<()> {
86+
pub async fn run_telegram_bot(
87+
config: &Config,
88+
turn_gate: TurnGate,
89+
tool_factory: Option<ToolFactory>,
90+
) -> Result<()> {
8791
let telegram_config = config
8892
.telegram
8993
.as_ref()

0 commit comments

Comments
 (0)