Skip to content

Commit c903698

Browse files
Merge pull request #3031 from TheBlueMatt/2024-04-new-rustc-warning
Fix new rustc `#[macro_export]` warning in doctests
2 parents 2b14cc4 + c8ddf36 commit c903698

File tree

1 file changed

+1
-2
lines changed
  • lightning-custom-message/src

1 file changed

+1
-2
lines changed

lightning-custom-message/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//! `Foo` and `Bar` messages, and further composing it with a handler for `Baz` messages.
1313
//!
1414
//!```
15+
//! # fn main() {} // Avoid #[macro_export] generating an in-function warning
1516
//! # extern crate bitcoin;
1617
//! extern crate lightning;
1718
//! #[macro_use]
@@ -167,7 +168,6 @@
167168
//! # }
168169
//! }
169170
//!
170-
//! # fn main() {
171171
//! // The first crate may define a handler composing `FooHandler` and `BarHandler` and export the
172172
//! // corresponding message type ids as a macro to use in further composition.
173173
//!
@@ -207,7 +207,6 @@
207207
//! macro_rules! foo_bar_baz_type_ids {
208208
//! () => { foo_bar_type_ids!() | baz_type_id!() }
209209
//! }
210-
//! # }
211210
//!```
212211
//!
213212
//! [BOLT 1]: https://github.com/lightning/bolts/blob/master/01-messaging.md

0 commit comments

Comments
 (0)