From e360b438b4cdbbc1e10020284f21ef6c8d1e8018 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sun, 3 Sep 2023 10:01:28 +0800 Subject: [PATCH] fix lint --- crates/llama-cpp-bindings/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/llama-cpp-bindings/src/lib.rs b/crates/llama-cpp-bindings/src/lib.rs index 9325c5b79..81dd40ceb 100644 --- a/crates/llama-cpp-bindings/src/lib.rs +++ b/crates/llama-cpp-bindings/src/lib.rs @@ -69,7 +69,7 @@ impl TextGeneration for LlamaEngine { while n_remains > 0 { if cancel_for_inference.is_cancelled() { // The token was cancelled - break + break; } next_token_id = engine.step(next_token_id);