diff options
author | Federico Mena Quintero <federico@gnome.org> | 2023-02-27 16:57:22 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2023-02-27 16:57:22 -0600 |
commit | 9db0fc887b2b4ead6cc1293037c3301a0c469fdc (patch) | |
tree | 43671c51fa9d36a5797e2ef9a066d150c1247ee3 | |
parent | 9a76330749f6d6a57d1b935d9a00c806ec8adb05 (diff) | |
download | librsvg-9db0fc887b2b4ead6cc1293037c3301a0c469fdc.tar.gz |
clippy: Use Box's default instead of the inner's default
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/801>
-rw-r--r-- | src/element.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.rs b/src/element.rs index 946cab0d..ca1c0ee4 100644 --- a/src/element.rs +++ b/src/element.rs @@ -461,7 +461,7 @@ impl ElementData { macro_rules! e { ($name:ident, $element_type:ident) => { pub fn $name(session: &Session, attributes: &Attributes) -> ElementData { - let mut payload = Box::new(<$element_type>::default()); + let mut payload = Box::<$element_type>::default(); payload.set_attributes(attributes, session); ElementData::$element_type(payload) |