Skip to content

Commit dcf9669

Browse files
committed
Remove unnecessary parameter includes
1 parent cd633ef commit dcf9669

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/util/config/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ impl Config {
10681068
let home = self.home_path.clone().into_path_unlocked();
10691069

10701070
self.walk_tree(path, &home, |path| {
1071-
let value = self.load_file(path, true)?;
1071+
let value = self.load_file(path)?;
10721072
cfg.merge(value, false).with_context(|| {
10731073
format!("failed to merge configuration at `{}`", path.display())
10741074
})?;
@@ -1085,8 +1085,8 @@ impl Config {
10851085
/// Loads a config value from a path.
10861086
///
10871087
/// This is used during config file discovery.
1088-
fn load_file(&self, path: &Path, includes: bool) -> CargoResult<ConfigValue> {
1089-
self._load_file(path, &mut HashSet::new(), includes, WhyLoad::FileDiscovery)
1088+
fn load_file(&self, path: &Path) -> CargoResult<ConfigValue> {
1089+
self._load_file(path, &mut HashSet::new(), true, WhyLoad::FileDiscovery)
10901090
}
10911091

10921092
/// Loads a config value from a path with options.
@@ -1476,7 +1476,7 @@ impl Config {
14761476
None => return Ok(()),
14771477
};
14781478

1479-
let mut value = self.load_file(&credentials, true)?;
1479+
let mut value = self.load_file(&credentials)?;
14801480
// Backwards compatibility for old `.cargo/credentials` layout.
14811481
{
14821482
let (value_map, def) = match value {

0 commit comments

Comments
 (0)