Skip to content

Commit 57bdb76

Browse files
committed
Make xdg_base_dir public
1 parent f51ddf6 commit 57bdb76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cargo-afl/src/common.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ use std::env;
55
use std::ffi::OsStr;
66
use std::path::{Path, PathBuf};
77

8-
fn xdg_base_dir() -> xdg::BaseDirectories {
8+
/// Return the [`xdg::BaseDirectories`] used by afl.rs
9+
///
10+
/// This function is public only for tests. Non-test code should use [`data_dir`], etc.
11+
pub fn xdg_base_dir() -> xdg::BaseDirectories {
912
xdg::BaseDirectories::with_prefix("afl.rs")
1013
}
1114

0 commit comments

Comments
 (0)