Skip to content

Commit 4520692

Browse files
committed
Fix release clippy warnings
1 parent b603aa8 commit 4520692

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

core/src/agent_api.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -929,11 +929,10 @@ impl Agent {
929929
Err(_) => None,
930930
};
931931
if let Some(records) = run_records {
932-
match tokio::runtime::Handle::try_current() {
933-
Ok(handle) => tokio::task::block_in_place(|| {
932+
if let Ok(handle) = tokio::runtime::Handle::try_current() {
933+
tokio::task::block_in_place(|| {
934934
handle.block_on(session.run_store.replace_records(records))
935-
}),
936-
Err(_) => {}
935+
});
937936
}
938937
}
939938

core/src/run.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ fn apply_event_to_snapshot(run: &mut RunSnapshot, event: &AgentEvent) {
257257
}
258258
AgentEvent::StepStart { .. }
259259
| AgentEvent::ToolStart { .. }
260-
| AgentEvent::TurnStart { .. } => {
261-
if !matches!(run.status, RunStatus::Planning) {
262-
run.status = RunStatus::Executing;
263-
}
260+
| AgentEvent::TurnStart { .. }
261+
if !matches!(run.status, RunStatus::Planning) =>
262+
{
263+
run.status = RunStatus::Executing;
264264
}
265265
AgentEvent::End { text, .. } => {
266266
if run.status == RunStatus::Cancelled {

0 commit comments

Comments
 (0)