summaryrefslogtreecommitdiff
path: root/candle-transformers/src/models/stable_diffusion/utils.rs
diff options
context:
space:
mode:
authorAnubhab Bandyopadhyay <4890833+AnubhabB@users.noreply.github.com>2024-11-29 03:30:21 +0530
committerGitHub <noreply@github.com>2024-11-28 23:00:21 +0100
commit54e7fc3c97a6d40e459cee4d4bf2eff5c82390da (patch)
tree8ef4da0e255884de729b8c70fdf642b7c807d631 /candle-transformers/src/models/stable_diffusion/utils.rs
parent23ed8a9ded155df7b5961d6a5ae12b4e8096a9c2 (diff)
downloadcandle-54e7fc3c97a6d40e459cee4d4bf2eff5c82390da.tar.gz
candle-54e7fc3c97a6d40e459cee4d4bf2eff5c82390da.tar.bz2
candle-54e7fc3c97a6d40e459cee4d4bf2eff5c82390da.zip
Lint fixes introduced with Rust 1.83 (#2646)
* Fixes for lint errors introduced with Rust 1.83 * rustfmt * Fix more lints. --------- Co-authored-by: Laurent <laurent.mazare@gmail.com>
Diffstat (limited to 'candle-transformers/src/models/stable_diffusion/utils.rs')
-rw-r--r--candle-transformers/src/models/stable_diffusion/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-transformers/src/models/stable_diffusion/utils.rs b/candle-transformers/src/models/stable_diffusion/utils.rs
index 5b5fa0f7..0118bafc 100644
--- a/candle-transformers/src/models/stable_diffusion/utils.rs
+++ b/candle-transformers/src/models/stable_diffusion/utils.rs
@@ -21,7 +21,7 @@ struct LinearInterpolator<'x, 'y> {
cache: usize,
}
-impl<'x, 'y> LinearInterpolator<'x, 'y> {
+impl LinearInterpolator<'_, '_> {
fn accel_find(&mut self, x: f64) -> usize {
let xidx = self.cache;
if x < self.xp[xidx] {