diff --git a/rust/hg-core/src/config/mod.rs b/rust/hg-core/src/config/mod.rs
--- a/rust/hg-core/src/config/mod.rs
+++ b/rust/hg-core/src/config/mod.rs
@@ -360,21 +360,21 @@ impl Config {
self.plain = plain;
}
- /// Returns the default value for the given config item, if any.
- pub fn get_default(
- &self,
- section: &[u8],
- item: &[u8],
- ) -> Result