[librsvg: 2/7] Suppress new clippy warnings about suspicious operation groupings
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/7] Suppress new clippy warnings about suspicious operation groupings
- Date: Mon, 15 Feb 2021 19:52:34 +0000 (UTC)
commit 567f2a41a8972ad630cf2dd426de93284adb021d
Author: Sven Neumann <sven svenfoo org>
Date: Fri Feb 12 10:22:28 2021 +0100
Suppress new clippy warnings about suspicious operation groupings
Clippy has no clue about matrix operations, it seems.
https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_operation_groupings
src/transform.rs | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/transform.rs b/src/transform.rs
index 178f2197..0addc397 100644
--- a/src/transform.rs
+++ b/src/transform.rs
@@ -62,6 +62,8 @@ impl Transform {
#[must_use]
pub fn multiply(t1: &Transform, t2: &Transform) -> Self {
+ #[allow(clippy::unknown_clippy_lints)]
+ #[allow(clippy::suspicious_operation_groupings)]
Transform {
xx: t1.xx * t2.xx + t1.yx * t2.xy,
yx: t1.xx * t2.yx + t1.yx * t2.yy,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]