[librsvg: 6/19] Allow many single char variable names in some places




commit 673b469b027c2b5a511c146ac3429ebf0bce3f73
Author: Sven Neumann <sven svenfoo org>
Date:   Thu Aug 20 22:52:00 2020 +0200

    Allow many single char variable names in some places
    
    It seems reasonable to use single char variable names here,
    so shut up clippy.

 rsvg_internals/src/filters/convolve_matrix.rs | 2 ++
 rsvg_internals/src/filters/turbulence.rs      | 2 ++
 rsvg_internals/src/text.rs                    | 2 ++
 3 files changed, 6 insertions(+)
---
diff --git a/rsvg_internals/src/filters/convolve_matrix.rs b/rsvg_internals/src/filters/convolve_matrix.rs
index bea72fca2..7d5f68b7e 100644
--- a/rsvg_internals/src/filters/convolve_matrix.rs
+++ b/rsvg_internals/src/filters/convolve_matrix.rs
@@ -201,6 +201,8 @@ impl FilterEffect for FeConvolveMatrix {
         acquired_nodes: &mut AcquiredNodes,
         draw_ctx: &mut DrawingCtx,
     ) -> Result<FilterResult, FilterError> {
+        #![allow(clippy::many_single_char_names)]
+
         let input = self.base.get_input(ctx, acquired_nodes, draw_ctx)?;
         let mut bounds = self
             .base
diff --git a/rsvg_internals/src/filters/turbulence.rs b/rsvg_internals/src/filters/turbulence.rs
index bfd63663a..f7719254d 100644
--- a/rsvg_internals/src/filters/turbulence.rs
+++ b/rsvg_internals/src/filters/turbulence.rs
@@ -210,6 +210,8 @@ impl NoiseGenerator {
     }
 
     fn noise2(&self, color_channel: usize, vec: [f64; 2], stitch_info: Option<StitchInfo>) -> f64 {
+        #![allow(clippy::many_single_char_names)]
+
         const BM: usize = 0xff;
 
         let s_curve = |t| t * t * (3. - 2. * t);
diff --git a/rsvg_internals/src/text.rs b/rsvg_internals/src/text.rs
index 6a767cfc8..165a0adfa 100644
--- a/rsvg_internals/src/text.rs
+++ b/rsvg_internals/src/text.rs
@@ -363,6 +363,8 @@ impl PositionedSpan {
         transform: Transform,
         gravity: pango::Gravity,
     ) -> Option<BoundingBox> {
+        #![allow(clippy::many_single_char_names)]
+
         let (ink, _) = self.layout.get_extents();
         if ink.width == 0 || ink.height == 0 {
             return None;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]