Skip to content

Commit cc15f59

Browse files
committed
Remove TryFrom<PartialTargetTriple> for TargetTriple
1 parent 1720239 commit cc15f59

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/dist/dist.rs

-16
Original file line numberDiff line numberDiff line change
@@ -468,22 +468,6 @@ impl TargetTriple {
468468
}
469469
}
470470

471-
impl std::convert::TryFrom<PartialTargetTriple> for TargetTriple {
472-
type Error = &'static str;
473-
fn try_from(value: PartialTargetTriple) -> std::result::Result<Self, Self::Error> {
474-
if value.arch.is_some() && value.os.is_some() && value.env.is_some() {
475-
Ok(Self(format!(
476-
"{}-{}-{}",
477-
value.arch.unwrap(),
478-
value.os.unwrap(),
479-
value.env.unwrap()
480-
)))
481-
} else {
482-
Err("Incomplete / bad target triple")
483-
}
484-
}
485-
}
486-
487471
impl FromStr for PartialToolchainDesc {
488472
type Err = anyhow::Error;
489473
fn from_str(name: &str) -> Result<Self> {

0 commit comments

Comments
 (0)