We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 145eefb commit 7677feaCopy full SHA for 7677fea
src/dist/dist.rs
@@ -469,22 +469,6 @@ impl TargetTriple {
469
}
470
471
472
-impl std::convert::TryFrom<PartialTargetTriple> for TargetTriple {
473
- type Error = &'static str;
474
- fn try_from(value: PartialTargetTriple) -> std::result::Result<Self, Self::Error> {
475
- if value.arch.is_some() && value.os.is_some() && value.env.is_some() {
476
- Ok(Self(format!(
477
- "{}-{}-{}",
478
- value.arch.unwrap(),
479
- value.os.unwrap(),
480
- value.env.unwrap()
481
- )))
482
- } else {
483
- Err("Incomplete / bad target triple")
484
- }
485
486
-}
487
-
488
impl FromStr for PartialToolchainDesc {
489
type Err = anyhow::Error;
490
fn from_str(name: &str) -> Result<Self> {
0 commit comments