diff --git a/rust/hg-core/src/config/config.rs b/rust/hg-core/src/config/config.rs
--- a/rust/hg-core/src/config/config.rs
+++ b/rust/hg-core/src/config/config.rs
@@ -8,7 +8,9 @@
// GNU General Public License version 2 or any later version.
use super::layer;
-use crate::config::layer::{ConfigError, ConfigLayer, ConfigValue};
+use crate::config::layer::{
+ ConfigError, ConfigLayer, ConfigParseError, ConfigValue,
+};
use std::path::PathBuf;
use crate::repo::Repo;
@@ -89,11 +91,11 @@ impl Config {
&self,
section: &[u8],
item: &[u8],
- ) -> Result