[librsvg: 1/2] Remove semicolon from macro that doesn't do anything
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/2] Remove semicolon from macro that doesn't do anything
- Date: Mon, 18 Oct 2021 20:22:35 +0000 (UTC)
commit 4b68fed0b28da88b6574d813d06a3e01adb5ff7b
Author: Michael Howell <michael notriddle com>
Date: Mon Oct 18 08:55:47 2021 -0700
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)
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/611>
src/filters/component_transfer.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/filters/component_transfer.rs b/src/filters/component_transfer.rs
index 2e8f8725..1716ef21 100644
--- a/src/filters/component_transfer.rs
+++ b/src/filters/component_transfer.rs
@@ -272,7 +272,7 @@ macro_rules! func_or_default {
_ => unreachable!(),
},
_ => $func_type::default(),
- };
+ }
};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]