Skip to content

Remove semicolon from macro that doesn't do anything

This fixes these compiler warnings, introduced in Rust 1.56.0:

warning: trailing semicolon in macro used in expression position
   --> src/filters/component_transfer.rs:275:10
    |
275 |         };
    |          ^
...
408 |     let r = func_or_default!(func_r_node, FeFuncR);
    |             -------------------------------------- in this macro invocation
    |
    = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
    = note: this warning originates in the macro `func_or_default` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: trailing semicolon in macro used in expression position
   --> src/filters/component_transfer.rs:275:10
    |
275 |         };
    |          ^
...
409 |     let g = func_or_default!(func_g_node, FeFuncG);
    |             -------------------------------------- in this macro invocation
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
    = note: this warning originates in the macro `func_or_default` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: trailing semicolon in macro used in expression position
   --> src/filters/component_transfer.rs:275:10
    |
275 |         };
    |          ^
...
410 |     let b = func_or_default!(func_b_node, FeFuncB);
    |             -------------------------------------- in this macro invocation
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
    = note: this warning originates in the macro `func_or_default` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: trailing semicolon in macro used in expression position
   --> src/filters/component_transfer.rs:275:10
    |
275 |         };
    |          ^
...
411 |     let a = func_or_default!(func_a_node, FeFuncA);
    |             -------------------------------------- in this macro invocation
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
    = note: this warning originates in the macro `func_or_default` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: `librsvg` (lib) generated 4 warnings
warning: `librsvg` (lib test) generated 4 warnings (4 duplicates)

Merge request reports