[librsvg: 12/13] Suppress warning about large size difference between enum variants
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 12/13] Suppress warning about large size difference between enum variants
- Date: Wed, 26 Aug 2020 17:30:41 +0000 (UTC)
commit e91047e3a6a3efd0e1e42cc276732233a2985fa2
Author: Sven Neumann <sven svenfoo org>
Date: Tue Aug 25 22:14:10 2020 +0200
Suppress warning about large size difference between enum variants
See https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
Not sure about this one, it may make sense to optimize this as the size
difference is significant. ComputedValues is 736 bytes, while the other
variant is 16 bytes.
rsvg_internals/src/node.rs | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/rsvg_internals/src/node.rs b/rsvg_internals/src/node.rs
index 7bcdd566..8bbd716b 100644
--- a/rsvg_internals/src/node.rs
+++ b/rsvg_internals/src/node.rs
@@ -106,6 +106,7 @@ pub struct CascadedValues<'a> {
inner: CascadedInner<'a>,
}
+#[allow(clippy::large_enum_variant)]
enum CascadedInner<'a> {
FromNode(Ref<'a, Element>),
FromValues(ComputedValues),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]