From 02891d06e96b4b6c030db899f3998bf81a30e609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karolis=20Gudi=C5=A1kis?= Date: Thu, 8 Dec 2022 12:07:02 +0200 Subject: [PATCH] fix: Fix config folder location for rustdoc (#372) --- dozer-ingestion/src/test_util.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dozer-ingestion/src/test_util.rs b/dozer-ingestion/src/test_util.rs index aab6bf7806..3c6f825c0e 100644 --- a/dozer-ingestion/src/test_util.rs +++ b/dozer-ingestion/src/test_util.rs @@ -1,5 +1,8 @@ use include_dir::{include_dir, Dir}; +#[cfg(not(doc))] static TESTS_CONFIG_DIR: Dir<'_> = include_dir!("config/tests/local"); +#[cfg(doc)] +static TESTS_CONFIG_DIR: Dir<'_> = include_dir!("../config/tests/local"); pub fn load_config(file_name: &str) -> &str { TESTS_CONFIG_DIR