diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2024-02-08 16:48:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 16:48:47 +0100 |
commit | 020a979de2e0d17b5c1a38bb9f40f4de73954cd5 (patch) | |
tree | 7b429f961a9bc9f356110fc1746b2d350b7758a9 /candle-nn | |
parent | cdc3823d8fd71c5cc8aed3bef1f70291b81d6e8a (diff) | |
download | candle-020a979de2e0d17b5c1a38bb9f40f4de73954cd5.tar.gz candle-020a979de2e0d17b5c1a38bb9f40f4de73954cd5.tar.bz2 candle-020a979de2e0d17b5c1a38bb9f40f4de73954cd5.zip |
Fix clippy lints for 1.76. (#1682)
Diffstat (limited to 'candle-nn')
-rw-r--r-- | candle-nn/src/encoding.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-nn/src/encoding.rs b/candle-nn/src/encoding.rs index 38e2cc3b..a40b957a 100644 --- a/candle-nn/src/encoding.rs +++ b/candle-nn/src/encoding.rs @@ -124,7 +124,7 @@ fn set_at_index<D: WithDType, I: Into<i64>>( value: I, offset: usize, depth: usize, - v: &mut Vec<D>, + v: &mut [D], on_value: D, ) -> Result<()> { let value = value.into(); |