Skip to content

Commit 7abd218

Browse files
committed
mctp-estack: Don't export get_build_var()
Was accidentally exported previously. Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
1 parent 290b049 commit 7abd218

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

mctp-estack/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ mod reassemble;
4545
pub mod router;
4646
pub mod serial;
4747
pub mod usb;
48+
#[macro_use]
4849
mod util;
4950

5051
pub use fragment::{Fragmenter, SendOutput};
@@ -80,8 +81,6 @@ pub(crate) const HEADER_LEN: usize = 4;
8081
/// during the build. Those variables can be set in the `[env]`
8182
/// section of `.cargo/config.toml`.
8283
pub mod config {
83-
use crate::get_build_var;
84-
8584
/// Maximum size of a MCTP message payload in bytes, default 1032
8685
///
8786
/// This does not include the MCTP type byte.

mctp-estack/src/util.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/// Takes a `usize` from a build-time environment variable.
22
///
33
/// If unset, the default is used. Can be used in a const context.
4-
#[macro_export]
54
macro_rules! get_build_var {
65
($name:literal, $default:expr) => {{
76
match option_env!($name) {

0 commit comments

Comments
 (0)