summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2023-02-22 12:39:42 -0600
committerFederico Mena Quintero <federico@gnome.org>2023-02-23 18:18:30 -0600
commit4f6d309b096f43a3f1e65fc9a734ded443e06e21 (patch)
treef9a518a7ac412d1bf4271b9c2dc49b0b28114ed9
parentde8614dd81bea9aeab40daf2d24572174ae4873a (diff)
downloadlibrsvg-4f6d309b096f43a3f1e65fc9a734ded443e06e21.tar.gz
gradient::Common - don't impl SetAttributes, use a simple method
In 6608c133d501bca6ffe2d1288539c91882fe5bdb, ElementTrait was split into two traits, SetAttributes and Draw. The purpose of SetAttributes back then was just to be able to implement it for gradient::Common, which is a simple struct, not an SVG element. Since it is *not* an element, let's not use that trait for it at all. Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/801>
-rw-r--r--src/gradient.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient.rs b/src/gradient.rs
index 345eb7cc..194a92c3 100644
--- a/src/gradient.rs
+++ b/src/gradient.rs
@@ -511,7 +511,7 @@ impl RadialGradient {
}
}
-impl SetAttributes for Common {
+impl Common {
fn set_attributes(&mut self, attrs: &Attributes, session: &Session) {
for (attr, value) in attrs.iter() {
match attr.expanded() {