Skip to content

Commit abbd191

Browse files
authored
Merge pull request #3 from Manishearth/local-macros
Use local_inner_macros to make compatible with new-style macro imports
2 parents 46a5cc0 + 1ad0d9d commit abbd191

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "if_chain"
4-
version = "0.1.2"
4+
version = "0.1.3"
55
authors = ["Chris Wong <[email protected]>"]
66

77
license = "MIT/Apache-2.0"

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@
128128
/// Macro for writing nested `if let` expressions.
129129
///
130130
/// See the crate documentation for information on how to use this macro.
131-
#[macro_export]
131+
#[macro_export(local_inner_macros)]
132132
macro_rules! if_chain {
133133
($($tt:tt)*) => {
134134
__if_chain! { @init () $($tt)* }
135135
};
136136
}
137137

138138
#[doc(hidden)]
139-
#[macro_export]
139+
#[macro_export(local_inner_macros)]
140140
macro_rules! __if_chain {
141141
(@init ($($tt:tt)*) then $then:block else $other:block) => {
142142
__if_chain! { @expand $other $($tt)* then $then }

0 commit comments

Comments
 (0)