summaryrefslogtreecommitdiff
path: root/candle-wasm-examples/llama2-c
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-09-04 17:09:19 +0200
committerGitHub <noreply@github.com>2023-09-04 16:09:19 +0100
commit0d00c06a83b98c55d146564b96d913de4cec71c7 (patch)
tree4791c7826672c1ebbe36c34f55cc78273ae7577f /candle-wasm-examples/llama2-c
parent8395152d20c7c72fb866ca3f8cbcab8859bfed57 (diff)
downloadcandle-0d00c06a83b98c55d146564b96d913de4cec71c7.tar.gz
candle-0d00c06a83b98c55d146564b96d913de4cec71c7.tar.bz2
candle-0d00c06a83b98c55d146564b96d913de4cec71c7.zip
Fix clippy lint. (#736)
Diffstat (limited to 'candle-wasm-examples/llama2-c')
-rw-r--r--candle-wasm-examples/llama2-c/src/bin/m.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/candle-wasm-examples/llama2-c/src/bin/m.rs b/candle-wasm-examples/llama2-c/src/bin/m.rs
index 62b1bdf7..6628ab7e 100644
--- a/candle-wasm-examples/llama2-c/src/bin/m.rs
+++ b/candle-wasm-examples/llama2-c/src/bin/m.rs
@@ -58,10 +58,10 @@ impl Model {
Err(e) => Err(JsError::new(&e.to_string())),
}
}
+
#[wasm_bindgen]
pub fn get_seq_len(&mut self) -> usize {
- let seq_len = self.inner.config.seq_len;
- seq_len
+ self.inner.config.seq_len
}
#[wasm_bindgen]