cpu-worker: the Engine::prefill trait method keeps its dyn callback
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user