Skip to content

Commit fcb8001

Browse files
committed
style(config): replace dist::TargetTriple with TargetTriple
1 parent 9543655 commit fcb8001

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/config.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -934,15 +934,15 @@ impl<'a> Cfg<'a> {
934934
// against the 'stable' toolchain. This provides early errors
935935
// if the supplied triple is insufficient / bad.
936936
dist::PartialToolchainDesc::from_str("stable")?
937-
.resolve(&dist::TargetTriple::new(host_triple.clone()))?;
937+
.resolve(&TargetTriple::new(host_triple.clone()))?;
938938
self.settings_file.with_mut(|s| {
939939
s.default_host_triple = Some(host_triple);
940940
Ok(())
941941
})
942942
}
943943

944944
#[tracing::instrument(level = "trace", skip_all)]
945-
pub(crate) fn get_default_host_triple(&self) -> Result<dist::TargetTriple> {
945+
pub(crate) fn get_default_host_triple(&self) -> Result<TargetTriple> {
946946
self.settings_file
947947
.with(|s| Ok(get_default_host_triple(s, self.process)))
948948
}
@@ -1010,11 +1010,11 @@ impl<'a> Debug for Cfg<'a> {
10101010
}
10111011
}
10121012

1013-
fn get_default_host_triple(s: &Settings, process: &Process) -> dist::TargetTriple {
1013+
fn get_default_host_triple(s: &Settings, process: &Process) -> TargetTriple {
10141014
s.default_host_triple
10151015
.as_ref()
1016-
.map(dist::TargetTriple::new)
1017-
.unwrap_or_else(|| dist::TargetTriple::from_host_or_build(process))
1016+
.map(TargetTriple::new)
1017+
.unwrap_or_else(|| TargetTriple::from_host_or_build(process))
10181018
}
10191019

10201020
fn non_empty_env_var(name: &str, process: &Process) -> anyhow::Result<Option<String>> {

0 commit comments

Comments
 (0)