cpu-worker: the Engine::prefill trait method keeps its dyn callback

This commit is contained in:
Pavlo Ratushnyi
2026-11-14 20:13:14 +01:00
parent 96b947248c
commit b68e4b931f
+1 -1
View File
@@ -243,7 +243,7 @@ impl Decoder for GptOssEngine {
fn prefill(
&mut self,
prompt: &[u32],
progress: &mut (impl FnMut(usize, usize) -> bool + ?Sized),
progress: &mut dyn FnMut(usize, usize) -> bool,
) -> Result<Option<usize>, String> {
self.select_slot(prompt);
let state = &mut self.slots[self.active].state;