Skip to content

Commit aa60bef

Browse files
authored
Use $crate when recursing in object! macro
This allows calling `json::object!` without having to `use json::object;`
1 parent bce506a commit aa60bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ macro_rules! object {
315315
//
316316
// In this implementation, key/value pairs separated by commas.
317317
{ $( $key:expr => $value:expr ),* } => {
318-
object!( $(
318+
$crate::object!( $(
319319
$key => $value,
320320
)* )
321321
};

0 commit comments

Comments
 (0)