diff --git a/src/config.rs b/src/config.rs
index b72ad39d6d8..9b81e244b56 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -576,10 +576,10 @@ impl Cfg {
// Then walk up the directory tree from 'path' looking for either the
// directory in the override database, or a `rust-toolchain{.toml}` file,
// in that order.
- else if let Some((override_file, active_reason)) = self.settings_file.with(|s| {
+ else if let Some((override_cfg, active_reason)) = self.settings_file.with(|s| {
self.find_override_from_dir_walk(path, s)
})? {
- Some((OverrideCfg::from_file(self, override_file)?, active_reason))
+ Some((override_cfg, active_reason))
}
// Otherwise, there is no override.
else {
@@ -593,7 +593,7 @@ impl Cfg {
&self,
dir: &Path,
settings: &Settings,
- ) -> Result