Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@
/// * Use the scope of the current module: `testdir!(ModuleScope)`. In this case the crate
/// name and module path is used, but with an additional final `mod` component.
///
/// * Directly provide the path using an expression, e.g. `testdir!("sub/dir"). This
/// * Directly provide the path using an expression, e.g. `testdir!("sub/dir")`. This
/// expression will be passed to [`NumberedDir::create_subdir`] and thus must evaluate to
/// something which implements ``AsRef<Path>``, e.g. a simple `"sub/dir"` can be used or
/// something more advanced evaluating to a path, usually [`Path`] or [`PathBuf`].
///
/// [`NumberedDir::create_subdir`]: crate::NumberedDir::create_subdir
/// [`Path`]: std::path::Path
///
/// # Panics
///
/// If there is any problem with creating the directories or cleaning up old ones this will
Expand Down