mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Add Into<Triple> for Target
This commit is contained in:
parent
f39f7eda03
commit
76e98f7add
1 changed files with 6 additions and 0 deletions
|
@ -568,6 +568,12 @@ impl Target {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<&Target> for Triple {
|
||||
fn from(target: &Target) -> Self {
|
||||
target.to_triple()
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Target {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
write!(f, "{}", self.as_str())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue