Skip to content

Commit d77ff9f

Browse files
refactor(divan_compat): make private module inline
1 parent 891e8be commit d77ff9f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

crates/divan_compat/src/compat/mod.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
// Used by generated code. Not public API and thus not subject to SemVer.
1+
// Used by generated code from the macro `codspeed_divan_compat_macros::bench_compat`
22
#[doc(hidden)]
3-
#[path = "private.rs"]
4-
pub mod __private;
3+
pub mod __private {
4+
pub use super::{
5+
bench::{BenchArgs, BenchOptions},
6+
entry::{BenchEntry, BenchEntryRunner, EntryList, EntryLocation, EntryMeta, BENCH_ENTRIES},
7+
};
8+
9+
pub use divan::__private::{Arg, ToStringHelper};
10+
}
511

612
mod bench;
713
mod entry;

crates/divan_compat/src/compat/private.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)